How to make a break in an axis?

161 visualizaciones (últimos 30 días)
Nicolas Ochmann
Nicolas Ochmann el 24 de Ag. de 2017
Comentada: Brando Miranda el 11 de Jul. de 2018
Hi everybody?
I would like to plot the eigenvalues of a matrix as follows:
plot(eig(A));
This works, however does anybody know how I can include a break in the real axis so that the figure plots from -15 to -10 and -5 to 0 with respect to the real axis?
Thank you in advance!
Nicolas

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Ag. de 2017
  3 comentarios
Brando Miranda
Brando Miranda el 11 de Jul. de 2018
can u have a picture demo of what using this code does?
Brando Miranda
Brando Miranda el 11 de Jul. de 2018
can both of them be used at once?

Iniciar sesión para comentar.

Más respuestas (1)

Jan
Jan el 24 de Ag. de 2017
Editada: Jan el 24 de Ag. de 2017
It is a good strategy to search in the forum before asking a question. You would find e.g. that this has been asked 3 hours before already: https://www.mathworks.com/matlabcentral/answers/353921-how-to-make-a-break-on-the-x-axis .
There I have recommended to search in the FileExchange:

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by