How do I create a Contour plot such as below with three interdependent variables?
显示 更早的评论
采纳的回答
更多回答(1 个)
KSSV
2020-6-11
data = xlsread("Book1.xlsx") ; % you can use readtable also
data(:,2) = [] ; % second column if NaN's remove it
x = data(1,2:end) ; % x axis
y = data(2:end,1) ; % y-axis
Z = data(2:end,2:end) ; % data matrix
pcolor(x,y,Z)
shading interp ;
colorbar
类别
在 帮助中心 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
