mphtable
Get table data.
Syntax
info = mphtable(model,tabletag)
Description
info = mphtable(model,tabletag) returns the structure info containing the data with the tabletag tag and its headers.
The returned value info is a structure with the following content
Example
Load model_tutorial_llmatlab.mph, add a stationary study and compute the solution for different power values:
model = mphopen('model_tutorial_llmatlab');
std = model.study.create('std');
stat = std.feature.create('stat','Stationary')
stat.setIndex('pname','power',0);
stat.setIndex('plistarr','30 60 90',0);
std.run;
Evaluate the maximum temperature in the model and set the results in a table:
max = model.result.numerical.create('max','MaxVolume');
max.selection.all;
tbl = model.result.table.create('tbl','Table');
tbl.comments('Volume Maximum (T)');
max.set('table','tbl');
max.setResult;
Extract the table data:
str = mphtable(model,'tbl');
tbl_data = str.data
See Also
mpheval, mphevalpoint, mphglobal, mphint2, mphinterp, mphmax, mphmean, mphmin