How to make a break in an axis?

조회 수: 43 (최근 30일)
Nicolas Ochmann
Nicolas Ochmann 2017년 8월 24일
댓글: Brando Miranda 2018년 7월 11일
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

채택된 답변

Walter Roberson
Walter Roberson 2017년 8월 24일
  댓글 수: 3
Brando Miranda
Brando Miranda 2018년 7월 11일
can u have a picture demo of what using this code does?
Brando Miranda
Brando Miranda 2018년 7월 11일
can both of them be used at once?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
Jan 2017년 8월 24일
편집: Jan 2017년 8월 24일
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:

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by