Need values for the Astroid generated in MATLAB

3 visualizaciones (últimos 30 días)
Deepak Goel
Deepak Goel el 11 de Mayo de 2023
Comentada: Deepak Goel el 11 de Mayo de 2023
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.

Respuestas (1)

Chunru
Chunru el 11 de Mayo de 2023
Editada: Chunru el 11 de Mayo de 2023
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])

Categorías

Más información sobre Formula Manipulation and Simplification en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by