필터 지우기
필터 지우기

how to separate the variables of an equation?

조회 수: 4 (최근 30일)
omar
omar 2012년 1월 5일
댓글: Walter Roberson 2016년 10월 18일
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

채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 5일
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
omar
omar 2012년 1월 5일
thanks for your answer
of course I have particular function, I tried the solve function and it done with two solutions.
Walter Roberson
Walter Roberson 2012년 1월 5일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Basil Abdelrahim
Basil Abdelrahim 2016년 10월 18일
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
Walter Roberson
Walter Roberson 2016년 10월 18일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by