I have some problem when plotting the graph, anyone can help? Thanks

 Akzeptierte Antwort

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh am 27 Jun. 2015
Bearbeitet: Salaheddin Hosseinzadeh am 27 Jun. 2015
Hi,
You need to store y first.
x = -10:10;
for i = 1:numel(x)
y(i) = 2^(0.4*x(i))+5
end
plot(x,y,'g')

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by