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 个)

KSSV
KSSV 2016-11-22
编辑:KSSV 2016-11-22
z = -2 + 2*sqrt(3)*i ;
plot(z,'.r') ;
or
plot(real(z),imag(z),'.r') ;

5 个评论

This i not showing me that its complex Its just on a regular plane with no label of i or j for the imaginary axis which does me no good and is really the same as plotting -2+2*sqrt(3)
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.)
i need the y axis to actually show the dang i or j
plot(real(z),imag(z),'.r') ;
xlabel('Real part')
ylabel('Imaginary part')x
‘i need the y axis to actually show the dang i or j’
See the documentation for text.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

标签

提问:

2016-11-22

评论:

2016-11-22

Community Treasure Hunt

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

Start Hunting!

Translated by