Skip to main content
14-Alexandrite
May 20, 2022
Solved

creating a vector of complex numbers using 2 colums of data?

  • May 20, 2022
  • 1 reply
  • 1755 views

To all,

Stupid question ...

if I have a 2 columns matrix A, is there a way in mcad 15 of creating 1 column vector containing complex numbers so that z=A<0>+iA<1> ?

mcad 15 doesn’t seem to like the iA<1> syntax !

Do I have to create a programme to loop over all entries ! surely not ! No functin such as complex(a,b) like in excel?

 

Thanks

Best answer by terryhendicott

Hi,

Is this what you are after.

Capture.JPG

1 reply

21-Topaz II
May 20, 2022

Hi,

Is this what you are after.

Capture.JPG

JXBWk14-AlexandriteAuthor
14-Alexandrite
May 20, 2022

Thanks. so obvious. I nee t o multiply the imaginary part by 1j. I was trying to write A<1>j    !!

21-Topaz II
May 20, 2022

Hi,

My apologies the vectorize operator over the top is not necessary.

As it is a proper column matrix operation.

Capture.JPG