Butterfly Curve. Use Subplot

23 ビュー (過去 30 日間)
Deia Craig
Deia Craig 2019 年 9 月 26 日
編集済み: DGM 2023 年 9 月 4 日

回答 (1 件)

Bruno Teramoto
Bruno Teramoto 2019 年 9 月 26 日
編集済み: DGM 2023 年 9 月 4 日
t = [0:1/16:100];
x = sin(t).*(exp(cos(t))-2*cos(4*t) - (sin(t/12)).^5);
y = cos(t).*(exp(cos(t))-2*cos(4*t) - (sin(t/12)).^5);
subplot(2,1,1),plot(t,x,t,y,':')
title('x and y vs. t')
xlabel('t')
ylabel('x and y')
legend({'x vs. t','y vs. t'})
subplot(2,1,2),plot(x,y)
axis square %need to get from book don't tell them
title('y vs. x')
xlabel('x')
ylabel('y')
  1 件のコメント
darova
darova 2019 年 9 月 26 日
Please don't do someone's homework

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by