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 re-order two different solutions (Livelink MATLAB)

Please login with a confirmed email address before reporting spam

There are two ways to get a vector of solution data, I know.

1. Using "getU" and index. That is:
temp1 = model.sol(<soltag>).getU;
data1 = temp(index);

2. Using the function, "mpheval" directly. That is:
temp2 = mpheval(model,<expr>, 'smooth', 'none', 'pattern', 'gauss');
data2 = temp2.d1';

Both way, I can get a vector of solution data I need, but they are different in order.

I've used "getU" to get data, because I have to use "setU" later.
However I need another data evaluated by "mpheval" to filter the data above.

How can I match these two each other?

0 Replies Last Post 2016年4月21日 GMT-4 07:45
COMSOL Moderator

Hello Minsik Seo

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.