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)

Please login with a confirmed email address before reporting spam

Hallo,

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?


0 Replies Last Post 17.06.2015, 03:50 GMT-4
COMSOL Moderator

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.

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.