how can I create a complex matrix representing a grid of points with corners at -1 - i and 1 + i.

2 次查看(过去 30 天)
I want to know how to create a complex matrix representing a grid of points with corners at -1 - i and 1 + i. I was confused by this question and I do not know how define i. Help me with the code.

采纳的回答

KSSV
KSSV 2021-11-19
% Option 1
A = [-1-i;1+i]
A =
-1.0000 - 1.0000i 1.0000 + 1.0000i
% option 2
B = [-1-1i;1+1i] %1i is preferred
B =
-1.0000 - 1.0000i 1.0000 + 1.0000i
% option 3
R = [-1 ; 1] ; % real part
I = [-1 ; 1] ; % Imaginary part
C = R+1i*I
C =
-1.0000 - 1.0000i 1.0000 + 1.0000i
Also read about real and imag.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by