how to separate the variables of an equation?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
omar
am 5 Jan. 2012
Kommentiert: Walter Roberson
am 18 Okt. 2016
Hi there
Please do anyone know how to separate the variables of an equation. for example we have f(x,y)=g(x,y) and we want it as y=h(x) .
Many thanks
OMAR MAAROOF
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 5 Jan. 2012
That cannot be done in the equation form you specify.
For example, let f(x,y) = x^2 + y^3 . Then for any one x there are an infinite number of corresponding y that are valid.
If you are given a particular f(x,y) value, say P, you could try
syms x y
solve( P - g(x,y), y)
However, this will not always be able to find a solution, and when it is able to analyze, there may be multiple solutions.
2 Kommentare
Walter Roberson
am 5 Jan. 2012
Then both those solutions are valid.
For example, y^2 = x has two solutions, y = sqrt(x) and y = -sqrt(x) . Nothing you can do about it: y simply cannot always be isolated uniquely.
Weitere Antworten (1)
Basil Abdelrahim
am 18 Okt. 2016
Hi everyone
does any one have idea how can I spreat the male from the female in-order to transfer it from excel to matlab because its mix like that ??
male female female male
1 Kommentar
Walter Roberson
am 18 Okt. 2016
Is the order always the same? That in every group of 4 it goes male, female, female, male? Or is there a variable that has the information about which entry is which?
Siehe auch
Kategorien
Mehr zu Calculus 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!