Help with parametrizing a function and creating points
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I don't understand how to do this:
"In MATLAB, call symbols corresponding to the x- and y- coordinates of P1 = (x1, y1) and P2 = (x2, y2). Define a symbolic function r(t) that parametrizes the line segment ℓ from P1 to P2"
I don't know how I would write this in matlab, I keep getting index errors when trying to write a function
1 commentaire
Réponse acceptée
Matt J
le 6 Déc 2023
syms x y P [1,2]
syms r(t)
P1=[x1, y1];
P2=[x2, y2];
r(t)=P1+t*(P2-P1)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
