Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Opening a MATLAB generated geometry in COMSOL 4.3

Please login with a confirmed email address before reporting spam

Good morning,

Due to the necessity of loops, I have connected my MATLAB with COMSOL via LiveLink (sing the COMSOL Server). From the matlab specturm, everything works: I included all the COMSOL MLI files, and can run COMSOL commands and scripts and get an answer for studies.

What I want to do is see if there is a way to get COMSOL to open the .m file. Mostly, I want to be able to see the geometry that I've generated with the MATLAB file.

How can I achieve this?
Thanks

2 Replies Last Post 2014年6月4日 GMT-4 06:33

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2014年3月29日 GMT-4 14:08
Nevermind, I found the MATLAB mphsave() command in the API reference.
Nevermind, I found the MATLAB mphsave() command in the API reference.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2014年6月4日 GMT-4 06:33
Hi Andres, how did you solve the problem?
I tried the option of export and import a model (from comsol to matlab and viceverse) by using the Client Server. when I do that it appears a message: "Problem: timeout on connection attempt". And I couldnt open my model inmatlab.
I can save my model as ".m" and open it in Matlab but after that I could not modify it and reopen in comsol, I have tried to include the sentence: mphsave ('model') but it does not work.
Thanks in advance.
Hi Andres, how did you solve the problem? I tried the option of export and import a model (from comsol to matlab and viceverse) by using the Client Server. when I do that it appears a message: "Problem: timeout on connection attempt". And I couldnt open my model inmatlab. I can save my model as ".m" and open it in Matlab but after that I could not modify it and reopen in comsol, I have tried to include the sentence: mphsave ('model') but it does not work. Thanks in advance.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.