contour plot for 3d data with x, y, z and c in matlab

22 次查看(过去 30 天)
I have data in X, Y, Z, C format where all are 3d matrix, and C is the amplitude of the measurement at coordinate (X,Y,Z). I'd like to show this data as a contour plot where the contour color represents the value C(amplitude). How may I do that in matlab?
The X,Y,Z data are generated from meshgrid.
xi=linspace(1,5,50);
yi=linspace(1,5,50);
zi=linspace(1,5,50);
[X, Y, Z]=meshgrid(xi,yi,zi);
C = griddata(x,y,z,v,X,Y,Z,'natural');

回答(1 个)

KSSV
KSSV 2020-1-16
Read abouit contour3, slice.

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by