Rewrite a function in terms of parameter
显示 更早的评论
Hello,
I have a function in terms of two parameters x and y and I would like to rewrite this function only in terms of x/y. Is it possible to do so with matlab ?
Thank you
回答(1 个)
Walter Roberson
2022-4-26
0 个投票
https://www.mathworks.com/matlabcentral/answers/1701185-problems-with-y-x-division-isolation?s_tid=srchtitle
6 个评论
Sophie.annabel
2022-4-26
Walter Roberson
2022-4-26
syms a
subs(Equation, y, x/a)
Walter Roberson
2022-4-26
You can eliminate either x or y but not both, not with that equation.
-((a - x)*(x + 2))/((2*a + x)*(x - 1))
cannot be rewritten without the x
Sophie.annabel
2022-4-26
Walter Roberson
2022-4-26
consider your equation
((x/2 + 1)*(y - 1))/((y/2 + 1)*(x - 1))
Substitute x=2*y, which would be x/y=2. Do you get out an expression that is constant? No, you get
((y - 1)*(y + 1))/((2*y - 1)*(y/2 + 1))
and you can fplot that to see a pole at -2 and a pole at 1/2, so the function covers an infinite range for a=2
So knowing the ratio is not enough.
Sophie.annabel
2022-4-26
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



