How to solve system of equation in Matlab ?
조회 수: 2 (최근 30일)
이전 댓글 표시
How to solve the system of equations that the number of variable is fewer than the number of equations. for example:
x + y + 2z = 0,
2x + y -z = 0.
the result is
x = 3t,
y=-5t,
z=t.(t is parameter)
thanks you very much.
댓글 수: 0
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2014년 1월 3일
sol=solve('x + y + 2*z = 0','2*x + y -z = 0','x','y')
x=sol.x
y=sol.y
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!