Dan Bookwalter N8DCJ Posted December 16, 2014 Report Share Posted December 16, 2014 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 Quote Link to comment

crossrulz Posted December 16, 2014 Report Share Posted December 16, 2014 There is the complex data type. sqrt(-1) is just i. Quote Link to comment

Biometrology Posted December 16, 2014 Report Share Posted December 16, 2014 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. Quote Link to comment

Mellroth Posted December 16, 2014 Report Share Posted December 16, 2014 (edited) 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 December 16, 2014 by Mellroth Quote Link to comment

gb119 Posted December 16, 2014 Report Share Posted December 16, 2014 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) Quote Link to comment

## Recommended Posts

## Join the conversation

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