Need values for the Astroid generated in MATLAB

Hello
I am a newbie.
I ran the following script to generate an Astroid:
syms x(t) y(t) z(t)
x(t) = sin(t);
y(t) = cos(t);
z(t) = cos(2*t);
fplot3(x,y,z)
It does generate the curve. However I would like to know all the values generated to plot the curve.
How can I do that?
Please advise.
Thank You.

回答 (1 件)

Chunru
Chunru 2023 年 5 月 11 日
編集済み: Chunru 2023 年 5 月 11 日

0 投票

syms x(t) y(t) z(t)
x(t) = sin(t);
y(t) = cos(t);
z(t) = cos(2*t);
% specify the t interval
fplot3(x,y,z, [-pi pi])

1 件のコメント

Deepak Goel
Deepak Goel 2023 年 5 月 11 日
Great. Works like a charm. Thank You.

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

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

タグ

質問済み:

2023 年 5 月 11 日

コメント済み:

2023 年 5 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by