CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   MATLAB solve (https://www.cfd-online.com/Forums/main/184643-matlab-solve.html)

esikhatar March 7, 2017 11:50

MATLAB solve
 
Hi,
It's weird that MATLAB's 'solve' command does not work for a not so complicated equation:

P=0.02;
Vm=solve('1/3/Vm-5.5/6*(1-exp(-1/Vm))^2-P=0','Vm')

I know from drawing this equation has 3 roots. Any idea to solve this problem in MATLAB?
Cheers

lcarasik March 7, 2017 12:49

Quote:

Originally Posted by esikhatar (Post 639850)
Hi,
It's weird that MATLAB's 'solve' command does not work for a not so complicated equation:

P=0.02;
Vm=solve('1/3/Vm-5.5/6*(1-exp(-1/Vm))^2-P=0','Vm')

I know from drawing this equation has 3 roots. Any idea to solve this problem in MATLAB?
Cheers

You may find more help by asking this on the Matlab forums.


All times are GMT -4. The time now is 20:05.