How to use the solve function?!!
1 回表示 (過去 30 日間)
古いコメントを表示
Hi Everyone, this is my second question since the first one i stated it with a mistake.
I am trying to solve this equation for Mx :
nux= ((gam+1)/(gam-1))^(1/2) * atan(((gam-1)/(gam+1))*(Mx^2-1))^(1/2)-atan(Mx^2-1)^(1/2);
The values of nux and gam are given.
I tried solve this equation using the solve function (according to http://www.mathworks.com/help/symbolic/solve.html this link) but it didn't work, this is how i wrote it:
Mx=solve(nux-((gam+1)/(gam-1))^(1/2) * atan(((gam-1)/(gam+1))*(Mx^2-1))^(1/2)-atan(Mx^2-1)^(1/2)==0, Mx, 'Real');
The error that i kept getting was:
"Cannot find an exact (case-sensitive) match for 'Mx'
The closest match is: mx in C:\Program Files\MATLAB\R2012a\toolbox\robust\rctobsolete\mutools\commands\mx.m"
Please help me fix this problem, because i need the solution for that equation asap.
Thank you.
0 件のコメント
回答 (1 件)
Walter Roberson
2013 年 11 月 19 日
syms Mx
output_MX = solve(nux-((gam+1)./(gam-1)).^(1/2) * atan(((gam-1)./(gam+1)).*(Mx.^2-1)).^(1/2)-atan(Mx.^2-1).^(1/2)==0, Mx, 'Real');
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!