LiveLink for MATLAB: exit a model

Please login with a confirmed email address before reporting spam

Every time one mphopens an mph file to do something about an mph file. But when this job is finished it is impossible to delete the mph file or save any changes to it. Is there any command to exit Matlab control, without closing comsol with matlab?


1 Reply Last Post 13 gen 2025, 06:29 GMT-5
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 day ago 13 gen 2025, 06:29 GMT-5

Hi Carl

See page 40 of the LiveLink for Matlab Users' Guide where the ModelUtil.remove command is described.

You may want to use this workflow: - Open the model using mphopen - Open the Comsol GUI by using the mphlaunch command - Now you can edit the model using either Matlab or the Comsol GUI and each environment can be used to save the model.

-------------------
Lars Gregersen
Comsol Denmark
Hi Carl See page 40 of the LiveLink for Matlab Users' Guide where the ModelUtil.remove command is described. You may want to use this workflow: - Open the model using mphopen - Open the Comsol GUI by using the mphlaunch command - Now you can edit the model using either Matlab or the Comsol GUI and each environment can be used to save the model.

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.