필터 지우기
필터 지우기

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 CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by