CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

MATLAB solve

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2017, 12:50
Default MATLAB solve
  #1
New Member
 
kaka
Join Date: Feb 2011
Posts: 14
Rep Power: 15
esikhatar is on a distinguished road
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
esikhatar is offline   Reply With Quote

Old   March 7, 2017, 13:49
Default
  #2
Senior Member
 
Lane Carasik
Join Date: Aug 2014
Posts: 692
Rep Power: 15
lcarasik is on a distinguished road
Quote:
Originally Posted by esikhatar View Post
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.
lcarasik is offline   Reply With Quote

Reply

Tags
matlab, solve


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to solve fluid flow in a curved channel in Matlab Danivilla Main CFD Forum 0 August 28, 2015 18:36
Can OpenFoam solve this problem? salazardetroya OpenFOAM Running, Solving & CFD 1 July 29, 2015 23:34
Additional 2D solve at an inlet patch during each iteration of a usual 3D solve incompressible OpenFOAM Running, Solving & CFD 1 July 5, 2015 12:09
Solve Flow or VOF simultaneously ? Ramsey FLUENT 1 February 16, 2011 14:16
Linearized NS euqations: how to solve them?(problem with Matrix operations..) matteoL OpenFOAM Running, Solving & CFD 0 November 18, 2009 07:58


All times are GMT -4. The time now is 17:59.