How to parametrize a function ?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
John D'Errico
2022년 12월 8일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numbers and Precision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!