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
Posted 18 sept. 2015, 08:39 UTC−4 Version 5.1 0 Replies
Please login with a confirmed email address before reporting spam
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.
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.