cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

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

JXBWk
13-Aquamarine

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

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

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

Is this what you are after.

Capture.JPG

View solution in original post

4 REPLIES 4

Hi,

Is this what you are after.

Capture.JPG

JXBWk
13-Aquamarine
(To:terryhendicott)

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

Hi,

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

As it is a proper column matrix operation.

Capture.JPG

JXBWk
13-Aquamarine
(To:terryhendicott)

No need to apologies. I didn't use the vectorize operator 

Top Tags