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.
COMSOL with MATLAB - 'colortablerev' doesn't work
Posted 20 set 2011, 07:40 GMT-4 Interfacing Version 4.2, Version 4.2a 2 Replies
Please login with a confirmed email address before reporting spam
I am working with “COMSOL 4.2 with MATLAB” and I want to plot the mesh quality. This works quite fine. But if I try to reverse the colors with the MATLAB command:
model.result('pg1').feature('surf1').set('colortablerev', 'on');
nothing happens, the colors stay as they are. If I do the model in COMSOL (without MATLAB) I can reverse the color (Reverse_test.mph). But if I save it as an m-file (Reverse_test.m) and run this in MATLAB reverse of the color doesn’t work. For this compare the colors of the graph of the .mph file and the .m, which should be the same.
How can I get this working?
Thanks in advance for your help
Simon
Attachments:
Hello Simon Bühler
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.