필터 지우기
필터 지우기

Plot

조회 수: 1 (최근 30일)
Lu
Lu 2012년 6월 17일
Hi everybody!
I am trying to plot a time series using the following code:
figure(1)
subplot(2, 2, 1);plot(buy_side(4, :));
xlim([-384 2520]); ylim([0 1]);
title('BUY SIDE');
set(gca,'YTick',[0, 0.5, 1],'XGrid','on','XTickLabel',{'Jan', 'Feb', 'Mar', 'Apr'},'XTick',[360 1057 1800 2520],'FontWeight','bold','FontSize','16');
but everytime I run this, there is an error:
Error using set
Value must be numeric
Could you please give me a hint on what the error could be?
Thank you!

채택된 답변

per isakson
per isakson 2012년 6월 17일
Change
'FontSize','16'
to
'FontSize', 16
  댓글 수: 1
Lu
Lu 2012년 6월 17일
Thank you! :)

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

추가 답변 (0개)

카테고리

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