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.
Extracting data from a 2D contour plot in Matlab
Posted 21 févr. 2011, 02:30 UTC−5 Interfacing Version 4.0a 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
I have a 2D contour plot (Cut plane>2D plot group) in Matlab that I obtained through livelink, and I want to do some analysis on its data. The 2D cut plane goes through total acoustic pressure in my 3D model.
From what I understand, in order to get that pressure data I need to run in matlab:
[Ac_P] = mphinterp(model,{'acpr.p_t'},'dataset','cpl1');
What I am getting as a result of that is a 6x14685 matrix which when plotted as a contour looks like a real mess, and nowhere close to the plot I exported to Matlab...
Anything I am doing wrong here?
Thanks in advance!
I have a 2D contour plot (Cut plane>2D plot group) in Matlab that I obtained through livelink, and I want to do some analysis on its data. The 2D cut plane goes through total acoustic pressure in my 3D model.
From what I understand, in order to get that pressure data I need to run in matlab:
[Ac_P] = mphinterp(model,{'acpr.p_t'},'dataset','cpl1');
What I am getting as a result of that is a 6x14685 matrix which when plotted as a contour looks like a real mess, and nowhere close to the plot I exported to Matlab...
Anything I am doing wrong here?
Thanks in advance!
Attachments:
1 Reply Last Post 21 févr. 2011, 20:49 UTC−5