Heatmap of 2D plot
Afficher commentaires plus anciens
I have 5 seconds data of a continuous signal of frequency 512 Hz. I need to get a heatmap of this .
I have refered this https://stackoverflow.com/questions/23356219/plotting-many-lines-as-a-heatmap. I need a similiar plot with my data. Can I get some help with the code please.
I've attached the data as a .mat file.
3 commentaires
KSSV
le 21 Mai 2020
Attach your data into a mat file or a text file. Copying from here is a headache job.
meghna roy chowdhury
le 21 Mai 2020
KSSV
le 21 Mai 2020
I have answered t..hope it is useful.
Réponses (1)
t=[1/512:1/512:5]';
z = zeros(size(t));
col = amp; % This is the color, vary with amp in this case.
surface([t t],[amp amp],[z z],[col col],...
'facecol','no',...
'edgecol','interp',...
'linew',2);
2 commentaires
meghna roy chowdhury
le 26 Mai 2020
Modifié(e) : meghna roy chowdhury
le 26 Mai 2020
KSSV
le 26 Mai 2020
heatmap is a 2D spread of certain value. colormap is a color pallet used to show such a spread. There are direct functions for this read about heatmap and colormap.
Catégories
En savoir plus sur Data Distribution Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!