can you remove complex values from a plot

조회 수: 14 (최근 30일)
G
G 2014년 10월 24일
댓글: des teg 2022년 6월 15일
I am using plotyy but I have noticed that it begins to try and plot complex values. I know the data is accurate up until the numbers become complex. Is there a way to tell matlab to not plot the complex values.
Edit
I am plotting 2 [3x99] matrices. In one matrix the values will become complex after a point while the other matrix will always be real. I am looking for a way to ignore the complex values.

채택된 답변

Sean de Wolski
Sean de Wolski 2014년 10월 24일
편집: Sean de Wolski 2014년 10월 24일
xreal = real(x)
More
x = [3+0i,5+1i,4+2i,1+0i]
x(~imag(x))
  댓글 수: 3
Sean de Wolski
Sean de Wolski 2014년 10월 24일
So More
des teg
des teg 2022년 6월 15일
saved time Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by