Effacer les filtres
Effacer les filtres

Double Checking VVF graph

2 vues (au cours des 30 derniers jours)
Cassandra Meyer
Cassandra Meyer le 20 Fév 2022
Commenté : Star Strider le 20 Fév 2022
I have a curve with the parametrizations below and its coming up at two different lines when I graph it. I was going to try to make it a 3D plot with z=0 and it wouldn't let me. Does this look right? I feel like it should not be two separate lines, but I might be overthinking it.
syms t
x = (sqrt(3)*t- sin(t))/2
y = (t + sqrt(3)*sin(t))/2
r = [x y]
fplot(r)

Réponse acceptée

Star Strider
Star Strider le 20 Fév 2022
‘... it wouldn't let me.
Of course it will!
You just have to ask it nicely (and ask the correct plotting function)!
syms t
x(t) = (sqrt(3)*t- sin(t))/2
x(t) = 
y(t) = (t + sqrt(3)*sin(t))/2
y(t) = 
z(t) = 0*t
z(t) = 
0
figure
fplot3(x, y, z, [-1 1]*25, 'LineWidth',2)
Make appropriate changes to get the desired result.
.
  2 commentaires
Cassandra Meyer
Cassandra Meyer le 20 Fév 2022
OH that makes so much sense thanks so much!!
Star Strider
Star Strider le 20 Fév 2022
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by