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 with Matlab: How to save data

Please login with a confirmed email address before reporting spam

Hello,

I use Comsol (v3.5a) with matlab to do frequency sweep. The results (for example, S-parameters, S11) can be plotted in Matlab paint window using some postplot commands. But I would like to save the data in a file and plot them using other software like OrignPro. I try many times but couldn't fix it. As you know, if the results are plotted in Comsol paint window, they could be saved in a ASCII file. But in Matlab paint window, we cannot do that.

5 Replies Last Post 2011年9月7日 GMT-4 04:46

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年9月5日 GMT-4 10:11
Does there anyone know how to fix this? Thank you very much in advance!

Does there anyone know how to fix this? Thank you very much in advance!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年9月6日 GMT-4 04:41
Hi, I think that after solving a problem data is already saved in a fem. In my opinion you should check the Matlab Interface Guide for the proper syntax.

Hoping this helps, Rafał Piotuch.
Hi, I think that after solving a problem data is already saved in a fem. In my opinion you should check the Matlab Interface Guide for the proper syntax. Hoping this helps, Rafał Piotuch.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年9月6日 GMT-4 06:46
Hi, Rafal,

Thank you so much for your reply. I was really try to do that, but could not find such corresponding syntax. Anyway, I would try again. Thanks.

Best regards,


Hi, I think that after solving a problem data is already saved in a fem. In my opinion you should check the Matlab Interface Guide for the proper syntax.

Hoping this helps, Rafał Piotuch.


Hi, Rafal, Thank you so much for your reply. I was really try to do that, but could not find such corresponding syntax. Anyway, I would try again. Thanks. Best regards, [QUOTE] Hi, I think that after solving a problem data is already saved in a fem. In my opinion you should check the Matlab Interface Guide for the proper syntax. Hoping this helps, Rafał Piotuch. [/QUOTE]

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年9月7日 GMT-4 01:50
Hi - I have found it:
www.comsol.com/community/forums/3-5a/thread/20292/

Best regards,
RP
Hi - I have found it: http://www.comsol.com/community/forums/3-5a/thread/20292/ Best regards, RP

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年9月7日 GMT-4 04:46
Thank you so much for your nice reply. I just found an alternative solution for my case. I attached my sample code here also.
------------------------------------------------------
S21 = [ ];

data = postglobaleval(fem,{'S21_rfwh'});
Frequency = data.x;
S21 = cat(2,S21, data.y);
-------------------------------------------------------

Here, S21 is S-parameters, it could be also any globally defined expression.



Hi - I have found it:
www.comsol.com/community/forums/3-5a/thread/20292/

Best regards,
RP


Thank you so much for your nice reply. I just found an alternative solution for my case. I attached my sample code here also. ------------------------------------------------------ S21 = [ ]; data = postglobaleval(fem,{'S21_rfwh'}); Frequency = data.x; S21 = cat(2,S21, data.y); ------------------------------------------------------- Here, S21 is S-parameters, it could be also any globally defined expression. [QUOTE] Hi - I have found it: http://www.comsol.com/community/forums/3-5a/thread/20292/ Best regards, RP [/QUOTE]

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.