MATLAB Answers

0

Need help on designing plot

KSK 님이 질문을 제출함. 27 May 2015
최근 활동 KSK 님이 댓글을 추가함. 27 May 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

  댓글 수: 0

로그인 to comment.

태그

답변 수: 1

Youssef Khmou 님의 답변 27 May 2015
Youssef Khmou 님이 편집함. 27 May 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

Youssef Khmou Thank you very much! its work! i got two more question i posted today. hope you can help me. =) Really appreciated!

로그인 to comment.



Translated by