Design an x-y plot for the following where the values of x are from 0 to 20π with a spacing of π/100
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
BeTrayer EK
am 28 Mai 2015
Beantwortet: Murali Krishna
am 28 Mai 2015
Design an x-y plot for the following where the values of x are from 0 to 20π with a spacing of π/100.
a. y = x.sin(x)
b. z = x.cos(x)
c. Convert the above 2D into a 3D plot using z as the third axis
0 Kommentare
Akzeptierte Antwort
Murali Krishna
am 28 Mai 2015
try this..
x=0:pi/100:20*pi;
y=x.*sin(x);
z=x.*cos(x);
plot(x,y);
plot(x,z);
plot3(x,y,z);
grid on;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations 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!