Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Query MATLAB model structure
Posted 2011年7月14日 GMT-4 17:01 Interfacing Version 4.2 0 Replies
Please login with a confirmed email address before reporting spam
If I import a model (from COMSOL v4.2) into MATLAB how do I query its structure to find out how it is composed. I know the .m file will tell me but I want to query the model parameters from my own script.
For example, from the .m file I know ...
model.material('mat2').propertyGroup('def').set('relpermeability', '1');
model.material('mat2').propertyGroup('def').set('heatcapacity', '475[J/(kg*K)]');
model.material('mat2').propertyGroup('def').set('thermalconductivity', '44.5[W/(m*K)]');
model.material('mat2').propertyGroup('def').set('electricconductivity', '4.032e6[S/m]');
model.material('mat2').propertyGroup('def').set('relpermittivity', '1');
So how from the MATLAB command line could I find out what variables mat2 was composed of? For example in 3.5a I would do something like:
fem.appl{1}.mat
Many Thanks.
Tom
Hello Tom Myers
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.