Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Nov 20, 2018, 6:08 a.m. EST
Some effects are hard to reproduce in Matlab since we don't have low level access to all the features that makes up a plot. Hence there are often differences between the plots in Comsol and in Matlab.
That being said, we try as hard as we can to make the plots appear the same in the two environments and we may have missed something.
By "resulution" do you mean the coordinates or the colours (or both)?
Are you able to share a model where you see this? You can either attach you model to a post in this Forum or you can send the model to support.
-------------------
Lars Gregersen
Comsol Denmark
Some effects are hard to reproduce in Matlab since we don't have low level access to all the features that makes up a plot. Hence there are often differences between the plots in Comsol and in Matlab.
That being said, we try as hard as we can to make the plots appear the same in the two environments and we may have missed something.
By "resulution" do you mean the coordinates or the colours (or both)?
Are you able to share a model where you see this? You can either attach you model to a post in this Forum or you can send the model to support.
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Dec 1, 2018, 8:16 p.m. EST
Hi Lars,
Thanks for your reply.
I have attached two pngs, one through mphplot from Matlab, and the other one directly from Comsol Multiphysics. You can see the difference in the resolution of the image, it feels like mphplot dilutes the data before sending it to Matlab.
Your input is highly appreciated.
Thanks,
Mohamed Abdelhamid
Hi Lars,
Thanks for your reply.
I have attached two pngs, one through mphplot from Matlab, and the other one directly from Comsol Multiphysics. You can see the difference in the resolution of the image, it feels like mphplot dilutes the data before sending it to Matlab.
Your input is highly appreciated.
Thanks,
Mohamed Abdelhamid
Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Dec 3, 2018, 6:09 a.m. EST
Hi Mohamed
Try this:
mphplot(model, 'pg2', 'indexedcolors', 'on')
Note: The indexedcolors property is experimental, undocumented and unsupported. It may disappear in a future release of Comsol.
-------------------
Lars Gregersen
Comsol Denmark
Hi Mohamed
Try this:
mphplot(model, 'pg2', 'indexedcolors', 'on')
Note: The indexedcolors property is experimental, undocumented and unsupported. It may disappear in a future release of Comsol.
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Apr 9, 2019, 11:59 a.m. EDT
Hi Lars,
Sorry for the delayed reply.
I tried your suggestion but no improvement. I discarded the importing the figure from COMSOL to MATLAB and simply did it directly in MATLAB and the results were much better.
Thanks again for your help.
Sincerely,
Mohamed Abdelhamid
Hi Lars,
Sorry for the delayed reply.
I tried your suggestion but no improvement. I discarded the importing the figure from COMSOL to MATLAB and simply did it directly in MATLAB and the results were much better.
Thanks again for your help.
Sincerely,
Mohamed Abdelhamid
Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Apr 9, 2019, 9:18 p.m. EDT
Hi Mohamed
I'm glad it worked out for you.
If you feel that mphplot can be improved then please post your model and plotting code (or send it to support@comsol.com) and we'll have a look at it.
-------------------
Lars Gregersen
Comsol Denmark
Hi Mohamed
I'm glad it worked out for you.
If you feel that mphplot can be improved then please post your model and plotting code (or send it to support@comsol.com) and we'll have a look at it.