I want to generate Heatmap for irregular Time series data
조회 수: 4 (최근 30일)
이전 댓글 표시
Dear all
I am new for matlab. I tried to plot a heat map for a dataset but it doesnt work and sample graph format is also attached for reference which i need to plot and i attached a sample data
. I had tried using the below following codes. So kindly help me to resolve this issus. Thank you in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/654925/image.jpeg)
x = dta(:,1);
y = dat(:,83);
z = dat(:,2:82);
tbl = table(x,y,z);
h = HeatMap(tbl,'x','y','ColorVariable','z','ColorMethod');
Error using HeatMap
Expected DATA to be one of these types:
numeric, bioma.data.DataMatrix
Instead its type was table.
Error in bioma.util.validateMatrix (line 10)
validateattributes(data, {'numeric', 'bioma.data.DataMatrix'},...
Error in HeatMap/setDisplayDataOnly (line 784)
bioma.util.validateMatrix(data, 'DATA', 'HeatMap')
Error in HeatMap/setDisplayData (line 779)
obj = setDisplayDataOnly(obj, data);
Error in HeatMap/set.Data (line 523)
setDisplayData(obj, data)
Error in HeatMap (line 366)
obj.Data = data;
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!