Run comsol from matlab

Please login with a confirmed email address before reporting spam

My comsol version is 5.3 and Matlab is 2018a. I tried to run comsol using livelink for Matlab. I first loaded my comsol file and Matlab gives me following info:

ans = COMSOL Model Object Name: RRAM.mph Tag: Model Identifier: root

Then I typed the following command:

mphgeom(Model)

An error came out: No constructor 'com.comsol.model.Model' with matching signature found.

What does the error mean? Can someone help me with the problem? Thank you.


2 Replies Last Post 12 Feb 2019 10:28 GMT-05:00
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 days ago 11 Feb 2019 08:50 GMT-05:00

You should load the model using model = mphload('RRAM') and then do: mphgeom(model)

-------------------
Lars Gregersen
Comsol Denmark
You should load the model using model = mphload('RRAM') and then do: mphgeom(model)

Please login with a confirmed email address before reporting spam

Posted: 5 days ago 12 Feb 2019 10:28 GMT-05:00

That works. Thank you.

That works. Thank you.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.