# Complex Numbers .... coding ... need help

## Recommended Posts

I have not messed with complex numbers in probably 30 years or more... I have a snippet of Matlab code that I need to wire up asap , I made a couple of feeble attempts and decided to ask the experts.

I need a wiring soluition for this:

exp(sqrt(-1)*angles)

I assume it is pretty simple?

TIA

Dan

##### Link to comment

There is the complex data type.  sqrt(-1) is just i.

##### Link to comment

Is this what you need?

Treats your angle array as the imaginary component of a complex number (with a 0 real value component).

Check out the help for Re/Im To Complex and Exponential Function.

A.

##### Link to comment

I need a wiring soluition for this:

exp(sqrt(-1)*angles)

Rewrite exp(i*v) to exp(i)^v, or in LabVIEW notation

LabVIEW 2010:

Complex rotation.vi

/J

Edited by Mellroth
##### Link to comment

Orwire angle to a cos and sin function and then feed them both to a real amd imaginary parts to complex number

(e^{i\theta}=\cos \theta + i \sin \theta)

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×