Rewrite a function in terms of parameter
Show older comments
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
2 Comments
Torsten
on 26 Apr 2022
Your question is too vague to be answered.
Sophie.annabel
on 26 Apr 2022
Answers (1)
Walter Roberson
on 26 Apr 2022
0 votes
https://www.mathworks.com/matlabcentral/answers/1701185-problems-with-y-x-division-isolation?s_tid=srchtitle
6 Comments
Sophie.annabel
on 26 Apr 2022
Walter Roberson
on 26 Apr 2022
syms a
subs(Equation, y, x/a)
Walter Roberson
on 26 Apr 2022
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
on 26 Apr 2022
Walter Roberson
on 26 Apr 2022
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
on 26 Apr 2022
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


