Livelink for MATLAB/COMSOL mphimage2geom help?

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 commentaire

Jiawei
Jiawei le 28 Sep 2020
level = C means a slice to the image with contour value C

Connectez-vous pour commenter.

Réponses (0)

Question posée :

le 26 Sep 2013

Commenté :

le 28 Sep 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by