필터 지우기
필터 지우기

3D Drawing Presentation Issue

조회 수: 3 (최근 30일)
peter huang
peter huang 2023년 12월 1일
댓글: peter huang 2023년 12월 8일
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
Dyuman Joshi 2023년 12월 1일
From the given data, this is the output obtained -
names = unzip('space.zip')
names = 1×3 cell array
{'space/'} {'space/eta_010.csv'} {'space/plot_space.m'}
t = readtable('space/eta_010.csv')
t = 740644×3 table
X Y elevation ________ __________ _________ 0 0 0.49923 0 0.00076828 0.49923 0.039236 0 0.5 0 0.05 0.49923 0.039234 0.05 0.5 0.039236 0.010764 0.5 0 0.00076828 0.49923 0 0.05 0.49923 0.039236 0 0.5 0.039236 0.010764 0.5 0.039236 0 0.5 0.039236 0.010764 0.5 0.05 0 0.50021 0.039234 0.05 0.5 0.039236 0.010764 0.5 0.05 0.049789 0.50021
%Range of values in elevation
[a,b] = bounds(t.elevation)
a = 0.4738
b = 0.5282
imagesc(t.X, t.Y, t.elevation)
ax=gca;
ax.YDir = 'normal';
colorbar
peter huang
peter huang 2023년 12월 8일
Thank you so much!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by