3D Drawing Presentation Issue
2 次查看(过去 30 天)
显示 更早的评论
Hello MATLAB users,
I hope this message finds you well. Currently, I am encountering an issue with the 3D visualization of my data. I am using ParaView to export the results of my Computational Fluid Dynamics (CFD) simulations into a CSV file. In this file, the X and Y values correspond to the positions of the water tank, and the elevation corresponds to the water level at the coordinates of X and Y.
Despite my attempts to use MATLAB's plot3 for drawing, I find the results unsatisfactory. I aspire to achieve a visualization similar to the one in the attached image in my article, labeled "pcolor_ex," which I believe can be accomplished using the PCOLOR function. How can I implement this?
I have attached my MATLAB file and CSV for your reference.
Thank you in advance for your assistance.
2 个评论
Dyuman Joshi
2023-12-1
From the given data, this is the output obtained -
names = unzip('space.zip')
t = readtable('space/eta_010.csv')
%Range of values in elevation
[a,b] = bounds(t.elevation)
imagesc(t.X, t.Y, t.elevation)
ax=gca;
ax.YDir = 'normal';
colorbar
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computational Fluid Dynamics (CFD) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!