I want to have a heat map with different colors. With extreme color red and lowest blue. Something like in the picture, but with red the maximum and blue minum and other colors in between. How can I write my matlab code. it should read the values from a .csv file 

I am using the folloing command's

DataTbl=readtable('book1.csv');

[Ro,Co]=size(DataTbl);

Data=table2array(DataTbl);

latitude=Data(:,1);

longitude=Data(:,2);

altitude=Data(:,3);

h = heatmap(cdata,'ColorLevels', 5);

h.XLabel = 'Longitude';

h.YLabel = 'Latitude';

More Vikesh Shivik's questions See All
Similar questions and discussions