How do I create a Contour plot such as below with three interdependent variables?
Show older comments
Accepted Answer
More Answers (1)
KSSV
on 11 Jun 2020
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
1 Comment
Sahil Patel
on 11 Jun 2020
Categories
Find more on Vector Fields in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!