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.

Extraction of data from a contour plot

Please login with a confirmed email address before reporting spam

Hello, How can I extract results from a 2D contour plot to reproduce them in MATLAB? How does COMSOL allocate results in the file? Thanks, Paolo


1 Reply Last Post Dec 18, 2023, 4:07 a.m. EST
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 11 months ago Dec 18, 2023, 4:07 a.m. EST

Hi Paolo

If you wish to extract data from a plot the easiest thing is to look at the pd (plot data) output from mphplot. E.g.

pd = mphplot(model, ...

pd is a cell array of cell arrays that contain all the data that are used for the plot.

-------------------
Lars Gregersen
Comsol Denmark
Hi Paolo If you wish to extract data from a plot the easiest thing is to look at the pd (plot data) output from mphplot. E.g. pd = mphplot(model, ... pd is a cell array of cell arrays that contain all the data that are used for the plot.

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.