why does my code create a 3X1 Sym matrix for L_to_B_inital? i think it should be 1x1 and matlab doesn't give me an answer for L_to_B_initial?
im so confused
Any advice would be appricated, thank you
Cp=2.0714;
Cv=0.6360;
syms L_to_B_initial;
L_to_B = vpasolve((0.75-(1/(((5.236*Cv^2)/(L_to_B_initial^2))+2.4)))-Cp/L_to_B_initial == 0, L_to_B_initial, 2.5);

댓글 수: 3

Torsten
Torsten 2020년 4월 8일
Your equation has 3 solutions - thus a 3x1 array.
Amy Potter
Amy Potter 2020년 4월 8일
But the equation I am solving is not a cubic? So how does it have 3 solutions?
Torsten
Torsten 2020년 4월 9일
If you multiply by the common denominator, you'll see your equation becomes a cubic.

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

답변 (0개)

카테고리

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

질문:

2020년 4월 8일

댓글:

2020년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by