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?
Posted Sep 26, 2013, 12:41 p.m. EDT 1 Reply
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.
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