LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do the vector operations as simple as in Matlab

Hello All
I use quite much the operations like e.g.:

a=[1 -3 4];
b=a(find(a>0));

In LabVIEW I need to make a for loop with shift registers, for every element verify the condition, if true insert the element to the vector, etc. etc.

It is so easy in Matlab, is there a very simple way to do it in LV. Maybe there is some vi which I have not noticed.

Thanks in advance.

Pawel
0 Kudos
Message 1 of 3
(2,676 Views)
Pawel,

I use the "Conditional Auto-Indexing Tunnel.vi", which is part of the OpenG Toolkit "array" library available from OpenG.org.

Attached is an example.

-Jim
Download All
Message 2 of 3
(2,676 Views)
This is so beatiful.

Thank you very much.

regards
Pawel
0 Kudos
Message 3 of 3
(2,676 Views)