필터 지우기
필터 지우기

How do I limit plotting the values from a row variable say time?

조회 수: 2 (최근 30일)
Tunde Adubi
Tunde Adubi 2022년 6월 27일
댓글: Tunde Adubi 2022년 6월 28일
I want to make a plot with the time for 41665 values only. How do I achieve this?
figure('position',[50 100 1400 400])
pcolor(datenum(time),rng,zh)
datetick('x')
shading flat

답변 (1개)

KSSV
KSSV 2022년 6월 27일
Z = peaks(30) ;
x = datetime(2022,01,01):datetime(2022,01,30) ; % datetime class
y = 1:30 ;
pcolor(x,y,Z)
shading flat
  댓글 수: 3
KSSV
KSSV 2022년 6월 28일
What are dimensions of xtime, rng and zh?
Tunde Adubi
Tunde Adubi 2022년 6월 28일
The time variable (x-axis) should be 41665x1; The rng is the Y-axis 600 x1(double); zh has no dimension as its a 2D plot, see attached figure. In the attachment, The vertical space on the RHS with an extra hour (00:00 to 01:00) is to be eliminated from time.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by