Having trouble graphing a non-linear graph
Ältere Kommentare anzeigen
x = -2:0.1:2;
y = cos(x)+exp(-1/2*x.^2)*sin(6*x)
plot(x,y)
This is my code, I keep getting
Error in test (line 2) y = cos(x)+exp(-1/2*x.^2)*sin(6*x);
But I cant figure out what I am doing wrong.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!