Plotting complex zero causes plot one zero

조회 수: 1 (최근 30일)
Ra Karamislo
Ra Karamislo 2019년 1월 5일
댓글: madhan ravi 2019년 1월 5일
Hello
I have a set of complex data and I plot them in bulk. I use plot ( z , ' r * ' ) . All is fine and correct until there is only one number zero.
Function plot ( 0 , ' r * ' ) plots one point at (1,0). This is not exacty what I expected and this is critical. I dont see reson why. Separating the part real and imag does not work for me.
Can anybody please help me to clearify this. Maybe there is some rubish or default one which I can chage of clean. Thank you.

채택된 답변

madhan ravi
madhan ravi 2019년 1월 5일
plot(real(z),imag(z)) % if only one argument is used matlab plots the variables against index in x axis read plot documentation
  댓글 수: 2
Ra Karamislo
Ra Karamislo 2019년 1월 5일
Thank you
madhan ravi
madhan ravi 2019년 1월 5일
Anytime :)

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by