How do I plot y=(x/6)^3 in matlab?

5 views (last 30 days)
Clara Bubenko
Clara Bubenko on 20 Jan 2017
Commented: Stephen23 on 20 Jan 2017
How do I plot y=(x/6)^3 in matlab?

Accepted Answer

Stephen23
Stephen23 on 20 Jan 2017
Edited: Stephen23 on 20 Jan 2017
>> x = 0:0.1:3;
>> y = (x/6).^3;
>> plot(x,y)
  2 Comments
Stephen23
Stephen23 on 20 Jan 2017
@Clara Bubenko: my pleasure. I probably should have plotted some negative x-values too.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!