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.

Update the dataset in Comsol from Matlab

Please login with a confirmed email address before reporting spam

Hi all,

In Matlab script If I write:

pd1=mpheval(model, 'c'); %model= mphload('Test.mph'), c= Dependent Variable

pd1 is a struct type matlab variable that contains all information about the dependent variable 'c' including node points, time steps, solutions at node points, etc.

x= pd1.d1 %stores all the solutions in Matlab variable x

I have modified the values x in Matlab and stored the modified values of x back to pd1.d1

Now I want to send back the struct pd1 to COMSOL to update the dataset so that I will have the modified dataset to plot a surface graph.

Does anybody know how to send back the struct pd1 to Comsol? Thanks is advanve.

0 Replies Last Post 18 sept. 2015, 08:39 UTC−4
COMSOL Moderator

Hello Md Sayeedur Rahman

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.