Set Axis With Interval
Mostrar comentarios más antiguos
Hello Everybody!
I want to know how can I set the axis using interval, for example:
>> a = rand(10);
>> plot(a)
>> Min = 2;
>> Max = 4;
>> set(gca,'XLim',[Min:0.15:Max]) -> Doesn't work!!
I know that the correct syntax is "set(gca,'XLim',[Min Max])" but, I want to use interval.
Ideas?
Thank you!
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 30 de Jul. de 2014
set(gca,'xtick', your_interval)
2 comentarios
Vinicius Antunes
el 30 de Jul. de 2014
Stelios Fanourakis
el 13 de Mayo de 2019
Hi. How can someone estimate the average of y values for every interval of the x axis as you state it?
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!