フィルターのクリア

Heatmap of 2D plot

22 ビュー (過去 30 日間)
meghna roy chowdhury
meghna roy chowdhury 2020 年 5 月 21 日
コメント済み: KSSV 2020 年 5 月 26 日
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 件のコメント
meghna roy chowdhury
meghna roy chowdhury 2020 年 5 月 21 日
Hi, I've attached the .mat file
KSSV
KSSV 2020 年 5 月 21 日
I have answered t..hope it is useful.

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2020 年 5 月 21 日
編集済み: KSSV 2020 年 5 月 21 日
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 件のコメント
meghna roy chowdhury
meghna roy chowdhury 2020 年 5 月 26 日
編集済み: meghna roy chowdhury 2020 年 5 月 26 日
Thank you. This is very helpful.
Is there any difference between colormap and heatmap?
Apologies again, for missing this comment
KSSV
KSSV 2020 年 5 月 26 日
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by