03-23-2015 07:24 AM
I have an array of complex numbers with these numbers I need to set to 0 all numbers whose real parts are negative. With "in range and coerce" I can split the array into real and imaginary then set all negative numbers to 0 then recombine the complex part but that still leaves me with 0+ai numbers that should be 0. How can I also set the complex part to zero for the negative numbers?
03-23-2015 08:16 AM
Hello,
You can use the following fonction in a for loop with your array.
Michel
03-23-2015 08:32 AM
03-23-2015 08:35 AM
How would I arrange the two for loops to iterate over a 2d array? Sorry I'm quite new to labview.
03-23-2015 08:39 AM - edited 03-23-2015 08:40 AM
You should go through a basic tutorial, you will find plenty of them on NI website.
03-24-2015 08:54 AM
You really don't need any loops. Many LV functions that work on scalars also work on arrays.