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.

MATLAB Script to mph file

Please login with a confirmed email address before reporting spam

Hi everyone, I have a matlab script for 1D photonic crystals and want to convert it into mhp file for comsol to compare the results. is there anyway to do that?


1 Reply Last Post 24.05.2023, 05:19 GMT-4
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 24.05.2023, 05:19 GMT-4

Just run the M-file.

Save the resulting model as an MPH-file using the mphsave command.

-------------------
Lars Gregersen
Comsol Denmark
Just run the M-file. Save the resulting model as an MPH-file using the mphsave command.

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.