Query about axes of graph created by plot function
Mostrar comentarios más antiguos
If I have two variables A = [1 2 3] and B = [1 2 3], when I plot(A,B) I get a graph with 10 variables on both x and y axis with constant intervals between 1 and 3.
Is there a way where I can just get a graph with 3 values 1, 2 and 3 on both x and y axis?
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 9 de Feb. de 2021
0 votos
I suspect that you want to use xlim() and ylim()
2 comentarios
Erika Yoshikawa
el 9 de Feb. de 2021
Walter Roberson
el 9 de Feb. de 2021
MATLAB automatically chooses "nice" ticks. You can use xticks() and yticks() to choose different tick locations.
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
