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.
How to export data in "m" file?
Posted 2011年1月17日 GMT-5 08:41 Parameters, Variables, & Functions Version 3.5a 0 Replies
Please login with a confirmed email address before reporting spam
How can I use the following expression to export data?
"x" is "colon(2e-7,1e-8,1e-6)"
"y" is " elem.var = {'all'};"
The following is the programme line in matlab.
% Integration coupling variables
clear elem
elem.elem = 'elcplscalar';
elem.g = {'1'};
src = cell(1,1);
clear bnd
bnd.expr = {{{},'nPoav_rfweh'}};
bnd.ipoints = {{{},'4'}};
bnd.frame = {{{},'xy'}};
bnd.ind = {{'1','2','3','4','5','7','8','9','10','11','12','14','15', ...
'17','18','19','20','21','22'},{'6','13','16'}};
src{1} = {{},bnd,{}};
elem.src = src;
geomdim = cell(1,1);
geomdim{1} = {};
elem.geomdim = geomdim;
elem.var = {'all'};
elem.global = {'1'};
elem.maxvars = {};
elemcpl{1} = elem;
fem.elemcpl = elemcpl;
% Solve problem
fem.sol=femstatic(fem, ...
'solcomp',{'scEz'}, ...
'outcomp',{'scEz'}, ...
'blocksize','auto', ...
'pname','lambda0', ...
'plist',[colon(2e-7,1e-8,1e-6)], ...
'oldcomp',{}, ...
'linsolver','pardiso');
Hello Zhe Wang
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.