how to draw graphing D

 Accepted Answer

Hint: call linspace:
numberOfElements = 500; % for example.
x = linspace(-1, 2, numberOfElements);
% Now construct y
y = .......................
% now call plot
plot(....................
Give it a try. Not hard at all. Really really easy. Just remember to use .^ instead of ^.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Asked:

nam
on 22 Dec 2013

Commented:

nam
on 23 Dec 2013

Community Treasure Hunt

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

Start Hunting!