How to plot this in MATLAB?
6 ビュー (過去 30 日間)
古いコメントを表示
I wanted to draw this graph. If someone could help me with the MATLAB code for this graph with a brief explanation about it?
6 件のコメント
Sam Chak
2024 年 4 月 3 日
I apologize, but could you please clarify the specific method or approach you are having difficulty with when searching for example codes on the Internet?
採用された回答
Jonas
2024 年 4 月 4 日
this could work
theta = linspace (-pi/4,pi/4);
x = 0.5*cos(theta).*sqrt(2.*cos(2.*theta));
y = 0.5*sin(theta).*sqrt(2.*cos(2.*theta));
plot(x+0.5,y,-x+0.5,y), grid on,
axis ('equal')
figure;plot([x+0.5 -x+0.5],[y y])
axis equal; grid on;
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!