Plot 2D mesh data by coloured temperature
18 views (last 30 days)
Show older comments
Hi all, I have imported mesh solution data from FLUENT into Matlab, and would like to plot a graph with Y and Z distance on the axes, and with each point coloured as per the temperature associated with each mesh point (e.g. red for hottest points, blue for coldest etc). This allows me to accurately display and explain my findings at a fluid outlet.
I've seen this kind of plot before but I have no idea what it's called. Can anyone help?
Thanks, Alex
0 Comments
Accepted Answer
Walter Roberson
on 4 Dec 2015
mesh(Y, Z, Temperature)
colormap(hot)
See however http://blogs.mathworks.com/steve/2014/10/20/a-new-colormap-for-matlab-part-2-troubles-with-rainbows/ for reasons why you might prefer the new parula colormap rather than hot
5 Comments
Mike Garrity
on 4 Dec 2015
Ah, mesh requires the data to be gridded. We were discussing some of the options over on this thread. You should also look at the doc for the griddata function.
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!