How to parameterize function.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
abdulsamed kaymakci
am 3 Dez. 2022
Kommentiert: Star Strider
am 5 Dez. 2022
hi, i created a vector form like given below and i want to replace x y z with t variable like this. P = [t^2 +2*t +3*t; t*t -2*t^2] . but this is a case where x = y = z =t. how can i replace x y and z with t .
syms x y z
P = [x^2 +2*y +3*z; x*y -2*z^2]
0 Kommentare
Akzeptierte Antwort
Star Strider
am 3 Dez. 2022
2 Kommentare
Star Strider
am 5 Dez. 2022
As always, my pleasure!
Also, to get them as a column vector —
syms t x y z
P{1,:} = x^2 +2*y +3*z;
P{2,:} = x*y -2*z^2;
P = subs(P,{x,y,z},{t,t,t})
.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Formula Manipulation and Simplification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!