Interpolation of 4D data

2 ビュー (過去 30 日間)
Brady Flinchum
Brady Flinchum 2013 年 5 月 21 日
So I am currently working on plotting some 4D data. I have some geophyiscal data that each have their own x,y,z position in space and a corresponding data value, c. The data is in the form:
if true
x, y, z, c
37 1 1 value1
37 2 1 value2
. . . .
. . . .
. . . .
37 1 2 value_n
37 1 2 value_n2
end
Anyways I use the reshape command to put the data in the right form so that I can use the surf command:
if true
xq = reshape(x,xCols,yCols);
yq = reshape(y,xCols,yCols);
zq = reshape(z,xCols,yCols);
cq = reshape(c,xCols,yCols);
surfc(xq,yq,zq,cq,'edgecolor','none')
end
The results of the code:
How can I interpolate my values onto a finer mesh? In other words I want to interpolate my current xq, yq, zq, and cq to a finer xq, yq, zq and cq. Also is there a way to add contour lines to each cross-section?
Thanks.

回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by