how cdsc values?
2 ビュー (過去 30 日間)
古いコメントを表示
s
1 件のコメント
Stephen23
2019 年 11 月 27 日
"how to create 3D plot of equation with complex values?"
I was wondering how I could plot (3D) the following equation:
Here, j indicates complex value.
3 planes for plotting would be: x, y, and the real part of E.
採用された回答
Sulaymon Eshkabilov
2019 年 10 月 5 日
hi,
In your exercise, it is easier to use: real() and imag() to separate out the real and imag parts of E. E.g.
[x, y]=meshgrid(linspace(-pi, pi), linspace(-5, 5));
E = exp(-j*x*cosd(169)+y*sind(169)).*exp(deg2rad(311j));
subplot(211); mesh(x,y,real(E)); title('Real part of E');subplot(212); mesh(x,y,imag(E)); title('Imaginary part of E')
Good luck
2 件のコメント
Sulaymon Eshkabilov
2019 年 10 月 5 日
From your given exercise contexts, it seems to have the values in radians not in degrees and thus deg2rad conversion is used. If you'd need to get in degrees, then remove deg2rad().
Good luck.
その他の回答 (1 件)
Sulaymon Eshkabilov
2019 年 10 月 6 日
編集済み: Sulaymon Eshkabilov
2019 年 11 月 27 日
Hi,
Good luck.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Two y-axis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!