Plotting z = f(x, y) when (x, y, z) values are known
2 views (last 30 days)
Show older comments
Mukul
on 29 Nov 2024
Commented: Walter Roberson
on 29 Nov 2024
For an FEM question, I have meshed a plate with a circular hole, as shown below. I determined the temperature values at specific node locations and am trying to plot them on the surface. However, when I use the griddata function to interpolate the values in between, it also fills the hole area. Is there a way to create a surface plot without filling the hole?
0 Comments
Accepted Answer
Walter Roberson
on 29 Nov 2024
Calculate the temperature values on the resulting mesh.
Use pdeplot to plot the 2D geometry, specifying the temperature values as XYData https://www.mathworks.com/help/pde/ug/pdeplot.html#btmrraf-XYData
2 Comments
Walter Roberson
on 29 Nov 2024
I suspect that for pdeplot() the data needs to align with the mesh nodes.
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!