simple complex plot of a few points
이전 댓글 표시
All i want to do is plot a few points on a complex plot aka the S Plane
If i want to plot a single point at say -2 + 2*sqrt(3)*j how would i go about doing such a thing.
답변 (1개)
z = -2 + 2*sqrt(3)*i ;
plot(z,'.r') ;
or
plot(real(z),imag(z),'.r') ;
댓글 수: 5
Robert
2016년 11월 22일
Star Strider
2016년 11월 22일
KSSV is correct.
You should actually be plotting:
z = [-2 + 2*sqrt(3)*j; conj(-2 + 2*sqrt(3)*j)];
because complex quantities always appear in complex-conjugate pairs.
By convention, the real axis is the x-axis and the imaginary axis is the ±y axis. (Positive real parts indicate an unstable system, so the positive part of the x axis is characteristically not plotted.)
Robert
2016년 11월 22일
KSSV
2016년 11월 22일
plot(real(z),imag(z),'.r') ;
xlabel('Real part')
ylabel('Imaginary part')x
Star Strider
2016년 11월 22일
‘i need the y axis to actually show the dang i or j’
See the documentation for text.
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!