03-23-2010 04:48 PM
I'm quite new to LabVIEW (v.8.0) and I'm trying to figure out the easiest way to have a 4-element array multiplied by its inverse values resulting in a 16-element array
Array 1 values = 1, 2, 3, 4
Array 1 inverse values = 1, 0.5, 0.33, 0.25
Resulting array = (1, 0.5, 0.33, 0.25, 2, 1, 0.66, 0.5, 3, 1.5, 1, 0.75, 4, 2, 1.32, 1)
Any advice would be appreciated. Thanks!
Solved! Go to Solution.
03-23-2010 05:06 PM - edited 03-23-2010 05:07 PM
You could try something like the following (the last operation is "reshape array")
03-23-2010 06:01 PM - edited 03-23-2010 06:02 PM
You can also get a bit more fancy and replace the FOR loop with the "outer product" from the linear algebra palette.
04-14-2010 05:20 AM
04-14-2010 05:33 AM
07-14-2010 06:22 PM
I would like to know how all the elements in an array can be multiplied with just a single number.
I tried using the Multiply VI and connected an output array to one of its left terminals and a created a constant at the other left terminal. The right terminal has a waveform graph attached to it. So, will I be able to get the graph output as a scaled graph of the original?
07-14-2010 08:09 PM
Yes, if you multiply an array with a scalar, all elements will be scaled accordingly. Did you try?