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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

JXBWk
14-Alexandrite

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

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
14-Alexandrite
(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
14-Alexandrite
(To:terryhendicott)

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

Announcements

Top Tags