Effacer les filtres
Effacer les filtres

Need values for the Astroid generated in MATLAB

3 vues (au cours des 30 derniers jours)
Deepak Goel
Deepak Goel le 11 Mai 2023
Commenté : Deepak Goel le 11 Mai 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.

Réponses (1)

Chunru
Chunru le 11 Mai 2023
Modifié(e) : Chunru le 11 Mai 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])
  1 commentaire
Deepak Goel
Deepak Goel le 11 Mai 2023
Great. Works like a charm. Thank You.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Formula Manipulation and Simplification dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by