I am plotting an image using Simulink with sampling time 0.01s.
I want to change x-axis grid values instead of 200=2, 400=4....
My code is like
sim('response')
plot(y.signals.values)
hold on
plot(u.signals.values)
How and where should I define time sample for scaling x-axis

 채택된 답변

the cyclist
the cyclist 2016년 12월 18일

11 개 추천

set(gca,'XTick',0:200:1200)
set(gca,'XTickLabel',0:2:12)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

질문:

2016년 12월 18일

답변:

2016년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by