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.

mphplot + Matlab with no desktop

Please login with a confirmed email address before reporting spam

Hi community!
I'm doing a huge iterative loop in which matlab changes the parameters of a single model. Everytime I get a result, Matlab saves the numbers in a txt file, shows me the graphs in the figure window and saves it in a jpeg file.

I have being doing this for weeks using the Matlab GUI and after some memory crashes from matlab I've decided to run it without the graphic interface.

The problem now is that everytime the loops makes an mphplot, the output figure creates an error message due to the non-graphic interface I'm now using.

So here is my question:
Does anybody knows a workaround in order to make mphplot not to show the figure window but to save the jpeg file?

This is the way I'm doing it right now:

mphplot(model,'pg1');
print('-r200','-djpeg','graph.jpg');

Cheers!
--
Felipe

0 Replies Last Post 4 oct. 2012, 12:01 UTC−4
COMSOL Moderator

Hello Felipe Beltran-Mejia

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.