Problem with contourf for scattered data
古いコメントを表示
Hello!
I have a table with 3 columns (x,y,value) for scattered data from the image like this.

But when I take griddata and then contouf, I get such a plot with strange netted area (in the bottom). Blue points are my sctttered data

Area in the bottom large (small bubbles):

So the question is what am i doing wrong? Why do I get these netted areas instead of great filled areas? Why i get it i these places and others are ok&
Listing of my code, table in attachments
[xq,yq] = meshgrid(0:1:3550, 0:1:2550); % interpolation points grid
vq = griddata(x,y,values,xq,yq,'natural');
Z = squeeze(vq);
grid on
[hq,hqlbl] = contourf(xq,yq,Z);
clabel(hq,hqlbl)
colorbar ('Direction','reverse')
caxis([-60 20])
2 件のコメント
Cris LaPierre
2019 年 5 月 15 日
編集済み: Cris LaPierre
2019 年 5 月 15 日
Which column contains value? Your spreadsheet has 10 columns in it. X and Y are obvious, but not sure what you want to use for elevation.
Perhaps you could describe what it is you are trying to do? If you could explain what you want your final result to be, we can better help you decide what it is you should do.
Cyril Basalaev
2019 年 5 月 15 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

