how to draw graphing D

2 views (last 30 days)
nam
nam on 22 Dec 2013
Commented: nam on 23 Dec 2013
I'm new.draw D -1 <= x <= 2,0 <= y <= e^x thank you

Accepted Answer

Image Analyst
Image Analyst on 22 Dec 2013
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 2-D and 3-D Plots 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!