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

Please login with a confirmed email address before reporting spam

Recently I am working on a project modeling the soft tissue (blood veins) for evaluating the performance of targeted medicine. The model that I have developed is in Comsol and I am using Matlab (liveLinkMatlab) for API.
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

0 Replies Last Post 26.09.2014, 17:21 GMT-4
COMSOL Moderator

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.

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.