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.
No picture in Report (Word file)
Posted 17 juin 2015, 03:50 UTC−4 Results & Visualization 0 Replies
Please login with a confirmed email address before reporting spam
i want to use Comsol with Matlab to realize the function (for different parameter build geometry, build mesh, compute study and report the result)automatically.
But in none of the reports (Word file) are pictures generated and saved.
( everything which should be saved in the report as picture)
my code in comsol with matlab:
i = 0;
Q1 = java.lang.Integer.parseInt(model.param().get('q1'));
Q2 = java.lang.Integer.parseInt(model.param().get('q2'));
while (i<3)
model.param.set('q1',Q1 +10*i);
model.param.set('q2',Q2 +5*i);
model.geom('geom1').run;
model.mesh('mesh1').run;
model.sol('sol1').runAll;
model.result.report('rpt1').set('filename', strcat('Z:\Comsol 51\new+', num2str(i) ,'.docx'));
%model.result.report('rpt1').set('disableimages', 'off');
model.result.report('rpt1').run;
i=i+1:
end
My comsol is Version 5.1 and comsol with matlab R2015a
Can someone help me?
Hello Yuchen Cui
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.