Hi, how can i proceed with this question, everytime i plot it, it doesn't show me my line. Can u guys help me
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Roman Azrael Balgobin
am 8 Nov. 2019
Kommentiert: Roman Azrael Balgobin
am 8 Nov. 2019
x = -10 : 0.01 : 10;
y = (exp(x)/ sin(x)) + 0.3;
plot(x,y)

0 Kommentare
Akzeptierte Antwort
Jan Studnicka
am 8 Nov. 2019
You are missing . before /. See:
x = -10 : 0.01 : 10;
y = (exp(x)./ sin(x)) + 0.3; % use ./ instead of /
plot(x,y)
Weitere Antworten (1)
the cyclist
am 8 Nov. 2019
Bearbeitet: the cyclist
am 8 Nov. 2019
It's because you used a matrix division instead of an element-wise division to calculate y. Try this instead:
y = (exp(x)./ sin(x)) + 0.3;
Note the use of ./ in place of just / in the formula.
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!