three dimension plotting...yea
2 ビュー (過去 30 日間)
古いコメントを表示
hi I have this code so far but keep on getting an error when trying to plot it in 3D. I want to plot the equation....exp(i*x)=cos(x)+ (j*sin(x));
code
t = 0:.1:2*pi;
v= exp(i*x)=cos(x)+ (j*sin(x));
plot3(real(v),imag(v),t)
xlabel('x:real(v)')
ylabel('y:imag(v)')
zlabel('t')
grid on
axis square
0 件のコメント
採用された回答
the cyclist
2013 年 4 月 5 日
編集済み: the cyclist
2013 年 4 月 5 日
Your equation has an odd mix of x and t. This works for me:
t = 0:.1:2*pi;
v = cos(t)+ (j*sin(t));
plot3(real(v),imag(v),t)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!