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.
How to solve the error in using multiple solution number for data evaluation?
Posted 17.10.2018, 21:17 GMT-4 LiveLink for MATLAB 0 Replies
Please login with a confirmed email address before reporting spam
Dear all,
I tested the example for using mapmatrix in the LiveLink™ for MATLAB® User’s Guide. The matlab code is listed as follows
model = mphopen('modeltutorialllmatlab'); std = model.study.create('std1'); time = std.feature.create('time', 'Transient'); time.set('tlist', 'range(0,1,25)'); std.run; str = mphmatrix(model,'sol1','out',{'K'},'initmethod','sol','initsol','sol1','solnum',15);
However, if another solution number is specified, an error will be found.
str = mphmatrix(model,'sol1','out',{'K'},'initmethod','sol','initsol','sol1','solnum',11);
The error imformation is:
Error using mphmatrix Cannot set the property 'solnum' to '11'. Allowed values are: 'auto' 'first' 'last' 'interp' 'manual' '1'
How to solve this problem? Thanks.
Hello H.J. Xiang
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.