How to parametrize a function ?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
abdulsamed kaymakci
am 8 Dez. 2022
Kommentiert: abdulsamed kaymakci
am 9 Dez. 2022
So i have function like y^(0.5) = x this function created by syms command and id like to replace x with t and find y in terms of t. then r =[x,y] disp(r)
0 Kommentare
Akzeptierte Antwort
John D'Errico
am 8 Dez. 2022
syms x y
eq = sqrt(y) == x;
syms t real
ysol = solve(subs(eq,x,t),y,'returnconditions',true)
The constraint tells you that t must be positive. This is because the original equation was written as sqrt(y), which presumes the positive branch of the square root function.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numbers and Precision 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!