Contour Plot result very different

12 ビュー (過去 30 日間)
Ozzie Ozburn
Ozzie Ozburn 2018 年 7 月 16 日
コメント済み: Ozzie Ozburn 2018 年 7 月 17 日
Hello, I am new about MATLAB and i have data which consist of 3 column. I want to plot a contour by using data but i was not succesfull until now. I am suspicious about data number. I am gonna add my obtained plot and needed plot. The data is 412570 x 3 matrix. I could not add data because its size is over 5 mb (can not archieved also). If someone can help i can send it as e-mail attached.
  3 件のコメント
jonas
jonas 2018 年 7 月 16 日
編集済み: jonas 2018 年 7 月 16 日
The desired one looks like more like a density plot than a contour plot. What do you have on your z axis?
See my previous answer here on density plots. For more help, please attach a smaller segment of your data set (e.g. 10k rows)
jonas
jonas 2018 年 7 月 17 日
Please remove your answers and put the content in the comment field, right below the question.

サインインしてコメントする。

採用された回答

jonas
jonas 2018 年 7 月 17 日
編集済み: jonas 2018 年 7 月 17 日
Here is a plot I made using surf:
data=xlsread('Kitap1.xlsx');
X=data(:,1);
Y=data(:,2);
V=data(:,3);
[Xq,Yq]=meshgrid(min(X):0.001:max(X),min(Y):0.01:max(Y));
Vq=griddata(X,Y,V,Xq,Yq);
surf(Xq,Yq,Vq,'edgecolor','interp')
view(2)
axis tight
You have to remember that you need the data on a rectangular grid to use surf. The grid is created using meshgrid and the data is then interpolated using griddata.
See attachment for results. You can play with the colormap and the resolution of the grid if you want to improve the visuals.
  1 件のコメント
Ozzie Ozburn
Ozzie Ozburn 2018 年 7 月 17 日
Dear Jonas, Thank you so much for your helps. I appreciate.
Regards Ozzie

サインインしてコメントする。

その他の回答 (2 件)

Ozzie Ozburn
Ozzie Ozburn 2018 年 7 月 17 日
Thank you for answers. I will try your suggestion. Let me answer your questions. All columns are independent from each other. x and y are postion and z is intensity at each point. Full data are attached. Thank you

Ozzie Ozburn
Ozzie Ozburn 2018 年 7 月 17 日
Also, if possible i can use surf or mesh. 3D plots are also okey if you have suggstion.

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by