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?

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.


0 Replies Last Post Oct 17, 2018, 9:17 p.m. EDT
COMSOL Moderator

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.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.