Need help on designing plot

5 Ansichten (letzte 30 Tage)
KSK
KSK am 27 Mai 2015
Kommentiert: KSK am 27 Mai 2015
Dear all,
Can anyone help me with the below? Appreciate if anyone can help. Thank you!
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
Regards,
Martin

Akzeptierte Antwort

Youssef  Khmou
Youssef Khmou am 27 Mai 2015
Bearbeitet: Youssef Khmou am 27 Mai 2015
defining the variable is the first step :
x=0:pi/100:20*pi;
using element wise operation :
y=x.*sin(x);
z=x.*cos(x);
Three dimensional graph is given by :
plo3t(x,y,z)
  1 Kommentar
KSK
KSK am 27 Mai 2015
Youssef Khmou Thank you very much! its work! i got two more question i posted today. hope you can help me. =) Really appreciated!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help 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