How to change x axis values
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ammar Nasser
el 18 de Dic. de 2016
Respondida: the cyclist
el 18 de Dic. de 2016
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
0 comentarios
Respuesta aceptada
the cyclist
el 18 de Dic. de 2016
set(gca,'XTick',0:200:1200)
set(gca,'XTickLabel',0:2:12)
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!