-
Filter by Topic
Most Popular
All Topics
- List all discussions
using matlab with comsol
|
Thread index | Previous thread | Next thread | Start a new discussion |
June 6, 2010 12:13pm UTC
using matlab with comsol
Dear all,
I'm using MATLAB R2009b with windows seven, my COMSOL version is 3.4. I've saved my model in comsol with mfile but I can't run it in matlab.
what scould I do??
Reply | Reply with Quote | Send private message | Report Abuse
June 6, 2010 5:39pm UTC in response to BELGUERRAS Lamia
Re: using matlab with comsol
Hi,
This is because you are using an older version of Comsol!!
You have two alternatives: Downgrading your Matlab version or upgrading your Comsol version!!
Good Luck
Reply | Reply with Quote | Send private message | Report Abuse
June 7, 2010 10:28am UTC in response to R. Faycal Hamou
Re: using matlab with comsol
Hi,
How can I upgrade my comsol version???
Thank you
Lamia
Reply | Reply with Quote | Send private message | Report Abuse
June 7, 2010 11:26am UTC in response to BELGUERRAS Lamia
Re: using matlab with comsol
Hi
That you must check with your COMSOL office in your region, and receive (if you have a maintenance suscription), or buy the recent CD (which allows you still to run older versions, but I cannot tell if thios goes as far as 3.4, as there is 3.5 an 3.5a in between yours and the new 4.0
Good luck
Ivar
Reply | Reply with Quote | Send private message | Report Abuse
June 7, 2010 1:44pm UTC in response to Ivar Kjelberg
Re: using matlab with comsol
Hi,
I downgraded my Matlab to version (Matlab 7.5 R 2007b) but when I run my programme I recieve the following message:
??? Undefined variable "com" or class "com.femlab.util.Prop".
it means, it doesn't know the comsol functions.
Also, I can't connect COMSOL to MATLAB. I recieved the following error message;
c:\programme files\matlab\bin\win32\matlab.exe desktop-r"path('c:\comsol 34\multiphysics;c:\comsol 34\demo;c:\comsol34\cad;c:\comsol 34\em;c:\comsol 34\chem;c:\comsol 34\sme;c:\comsol 34\es;c:\comsol34\reaction;c:\comsol34\fatigue;c:\comsol 34\optmod,path);comsolmexpath('c:\comsol 34'):initcomsol;comsol ('connect');"
How can I solve this problem???
Thank you
Lamia
Reply | Reply with Quote | Send private message | Report Abuse
June 7, 2010 2:36pm UTC in response to BELGUERRAS Lamia
Re: using matlab with comsol
Hi,
Please refer to the attached file.
Reply | Reply with Quote | Send private message | Report Abuse
March 28, 2011 2:55pm UTC in response to Wonseok Yoon
Re: using matlab with comsol
Hi, I am having the same problem, being unable to connect to Matlab and I tried to follow the troubleshooting hints, however, it is impossible to do the following:
"The MATLAB root folder may change over updates and if COMSOL can not find the MATLAB
root, a connection between the two can not be made. The MATLAB root folder can be
configured for COMSOL in the comsol.opts file found in the COMSOLROOT/bin folder.
Edit the value of the “mlroot” variable. COMSOL needs to be restarted after editing the file."
The extension .opts is not recognized by any program, and therefore it is impossible to open.
Does anyone have any suggestions please.
Thank you
Marina
Reply | Reply with Quote | Send private message | Report Abuse
Rules and guidelines

