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.

COMSOL/Livelink forMATLAB mphimage2geom help?

Please login with a confirmed email address before reporting spam

HI,

I'm a new user to both COMSOL and MATLAB. I'm trying to take an image from MATLAB and turn it into a geometry in COMSOL. I'm able to get the image into MATLAB just fine, but can't figure out how to turn it into a geometry for a COMSOL model. It sounds like mphimage2geom should work, but I keep getting error messages.

The syntax I've been trying to use is:

model=mphimage2geom(imagedata, level,...)

I'm assuming "imagedata" should just be the variable I have my image saved as, but I don't know what "level" corresponds to.

Any help would be very much appreciated. Thank you.

1 Reply Last Post Oct 17, 2013, 9:58 a.m. EDT
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Oct 17, 2013, 9:58 a.m. EDT
Hi

Have you tried looking at the section "Creating Geometry From Image Data" in the LiveLink for Matlab manual?

Lars Gregersen
Comsol Denmark
Hi Have you tried looking at the section "Creating Geometry From Image Data" in the LiveLink for Matlab manual? Lars Gregersen Comsol Denmark

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.