It hints the expresion was wrong when I solve the equations as follow:
>>syms rs xs rp xp
>> [xs,xp]=solve(rs*rp^2/(rs^2+(xs+xp)^2))==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])
Why?

 채택된 답변

VBBV
VBBV 2022년 4월 4일

0 개 추천

syms rs xs rp xp
[xs,xp]=solve(rs*rp^2./(rs^2+(xs+xp)^2)==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])
xs = 
xp = 

댓글 수: 4

Parenthesis is closed at incorrect location
syms rs xs rp xp
[xs,xp]=solve(rs*rp^2./(rs^2+(xs+xp)^2)==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])
%)
Xizeng Feng
Xizeng Feng 2022년 4월 4일
would you pls point out where is the correct position.
Xizeng Feng
Xizeng Feng 2022년 4월 4일
Oh, I found it! thank you very much!
VBBV
VBBV 2022년 4월 4일
please accep the answer if it solved , thanks :)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2022년 4월 4일

댓글:

2022년 4월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by