Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Comsol "DATA" export
Posted Sep 26, 2014, 5:21 p.m. EDT Interfacing, Chemical Reaction Engineering, Results & Visualization Version 4.3a, Version 4.3b, Version 4.4 0 Replies
Please login with a confirmed email address before reporting spam
In my matlab generated codes there is a section called “Data” which I want to export it into csv from Matlab. I was not able to find any command to access the data inside the “Data”. I did export “Table” but for the “Data” I am stuck and I really need help. I was wondering if you could possibly give me some hints or a resource. I have read all of the related documents about LiveLink).
Here is a part of my code that I am talking about
%
model.result.export.create('data1', 'Data');
model.result.export('data1').setIndex('expr', 'u4', 0);
model.result.export('data1').set('filename', 'C:\Program Files\COMSOL\COMSOL44\u4.csv');
model.result.export('data1').run;
model.result.export('data1').name('u4');
%
What I want is to export ‘data1’ (or clearly, u4) to a .csv file. I can do this when I am in COMSOL itself. But I cannot do it inside the Matlab.
Any help is appreciated
Hello Dara Nyknahad
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.