필터 지우기
필터 지우기

Plotting data

조회 수: 2 (최근 30일)
shaz
shaz 2012년 4월 2일
Hi
i have data called x(26*1 cell) & y(26*1 cell)
sometimes my x & y data will be timestamp
Not able to plot
using plot(x,y) getting error
??? Error using ==> plot Not enough input arguments.
Thanks in advance

채택된 답변

Rick Rosson
Rick Rosson 2012년 4월 2일
>> doc cell2mat
  댓글 수: 1
shaz
shaz 2012년 4월 2일
i have x -axis in 03-Apr-2012 12:25:00 (Timestamp format) & y-axis in 10,20 .
cell2mat works for y-axis but for X-axis??

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

추가 답변 (1개)

Thomas
Thomas 2012년 4월 2일
try
x_new=datenum(x,'dd-mmm-yyyy HH:MM:SS'); % xaxis time stamp format
y=cell2mat(y) % y axis
plot(x_new,y);
hold on
datetick('x','dd-mmm-yyyy HH:MM:SS') % to show the date time in graph

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by