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.

Changing view of matlab function mphplot

Please login with a confirmed email address before reporting spam

Dear all,

I want to plot my COMSOL model in a Matlab figure using the mphplot function.

However the orientation of the model in the plot is the standard orientation of the Model in COMSOL.

Is there any way to use the mphplot function with a different view?

Thanks for your reply.

Markus

1 Reply Last Post Jul 2, 2015, 4:41 a.m. EDT
COMSOL Moderator

Hello Markus Hartmann

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.


Please login with a confirmed email address before reporting spam

Posted: 9 years ago Jul 2, 2015, 4:41 a.m. EDT
Hi,

I just had the same problem and found the solution. You can rotate the mph plot the same way like any other 3D plot in Matlab with the view([x,y,z]) command.

mphplot(model,'pg1');
view([10,10,10])

Best Stephan
Hi, I just had the same problem and found the solution. You can rotate the mph plot the same way like any other 3D plot in Matlab with the view([x,y,z]) command. mphplot(model,'pg1'); view([10,10,10]) Best Stephan

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.