drawing complex equation in 2D
3 ビュー (過去 30 日間)
古いコメントを表示
Dear Folks ,
kindly I need your help to plot the following equation :
P=151920000/w -(2673792000*w^2*cos(w) + w*sin(w)*44299872000i - 80736516720000*cos(w))/(w*(4*w - 729)*(4*w + 729)) + (243072000*w*exp((729i)/4))/((4*w - 729)*(4*w + 729))
w=1e06:100e06:1e09
appreciate your cooperation .
0 件のコメント
回答 (1 件)
Cris LaPierre
2020 年 10 月 26 日
You've already done all the hard work. Just define w first, and then use elementwise multiplication and division. You can use abs to plot the magnitude of P since it contains imaginary numbers. You could also use real() or imag() to plot the real or imaginary part, respectively.
If you are just getting started with MATLAB, I suggest going through MATLAB Onramp. It will introduce you to the MATLAB environment as well as the fundamentals of programming in MATLAB. Once you complete it, you'll be able to do this an much more on your own.
w=1e06:100e06:1e09;
P=151920000./w -(2673792000*w.^2.*cos(w) + w.*sin(w)*44299872000i - 80736516720000*cos(w))./(w.*(4*w - 729).*(4*w + 729)) + (243072000*w*exp((729i)/4))./((4*w - 729).*(4*w + 729));
plot(w,abs(P))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!