how to take cube of double array?

3 views (last 30 days)
Muhammad
Muhammad on 12 Mar 2022
Answered: Torsten on 12 Mar 2022
i have double array i want to take the cube of it ,is there any matlab func to perform this?
% in workspace
y 3800x1 double
%in command when i wright
z=y^3
it gives error

Accepted Answer

Torsten
Torsten on 12 Mar 2022
z=y.^3

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!