how to draw 2D or 3D graphs with large data

조회 수: 3(최근 30일)
Abdulkarim Almukdad
Abdulkarim Almukdad 2020년 10월 10일
댓글: Abdulkarim Almukdad 2020년 10월 11일
I have a data that contains X and Y coordinates (almost 25000 each), I also have Z values from an experiments. I would like to draw a 3D graph or 2D that can plot X and Y coordinates while Z coresponds to the height/density or just color at each X and Y values. I have tried to reduce my data to 400 and used the below
shading interp
view ([0 90])
However, the figure wasn't understandable and it was showing a square unlike the real data even when I use only the 400 it suppose to be like a (+) not square.
I have also tried the meshgrid for X and Y and repmat for Z but the result was almost the same.
I'm looking for something simillar to the attached figure.
Is there anyway that I can do that knowing that all my data are known (no equations or assumptions needed)
  댓글 수: 2
Abdulkarim Almukdad
Abdulkarim Almukdad 2020년 10월 11일
Thank you for your answer, I'm a beginner, can you please give me more details or what to do exactly?
consider my variables names X,Y, Z and table name T.
Thanks again

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

채택된 답변

KSSV 2020년 10월 11일
Let (x,y,z) be your column data.
dt = delaunayTriangulation(x,y) ;
tri = dt.ConnectivityList ;
shading interp
  댓글 수: 10
Abdulkarim Almukdad
Abdulkarim Almukdad 2020년 10월 11일
Thank you very much, that was very helpful

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

추가 답변(0개)



Community Treasure Hunt

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

Start Hunting!

Translated by