Need help on designing plot
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Youssef Khmou
2015년 5월 27일
편집: Youssef Khmou
2015년 5월 27일
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)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!