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.
Measure area with matlab
Posted 16 mag 2017, 16:06 GMT-4 1 Reply
Please login with a confirmed email address before reporting spam
i recently started using matlab for optimization purposes and im stuck with the problem of measuring the area of my model. I want to get the area of Domain 1.
I viewed the *.m file for it and it creates:
"model.material('mat5').selection.set([1]);"
This appears to select domain 1 for the material 5...so how do I address this? And with wich function?
I googled
"model.geom('geom1').measureFinal.selection.set([1])"
to apparently get the area, but all i get in Matlab is
"ans =
Dimension 2: Geometry geom1; Domain 1"
How do I get the area of something before solving the model (as it is possible in the Workspace)?
Also: Where can I get this kind of information? Is there some kind of overview of all functions? Its not in the documentation...
Thanks in advance
Hello E Sing
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.