10-21-2010 08:32 PM - edited 10-21-2010 08:36 PM
Hi,
I was wondering how I could convert a 2D boolean array to a 2D number array. I want to multiply the boolean array with another one, but I can't because the types are incompatible.
I tried converting to a digital and then a binary, but the binary gives me a 1D array for some reason.
Thanks.
10-21-2010 09:04 PM
Can you show what you tried that didn't work?
What should the conversion look like? Is it a case of converting True or False to a 1 or 0?
10-21-2010 09:17 PM - edited 10-21-2010 09:18 PM
10-21-2010 11:40 PM
I'm confused. Do you want to multiply two boolean arrays? Wouldn't that be the same result as just AND-ing them?
10-22-2010 08:55 AM - edited 10-22-2010 08:56 AM
Sorry, I wanted to multiply a boolean array with a numeric array. (Thanks altenbach!!!)
11-20-2013 05:02 AM - edited 11-20-2013 05:05 AM
Hi
I have 2D boolean array, and I need to convert each row individually to a numeric 1D array like this
0:0:0 ----> 0
1:0:0 ----> 1
0:1:0 ----> 2
.
.
.
1:1:1----> 7
8x3 array to 8x1
I tried by Boolean Array To Number function, but it doesn't work because of the difference in the array dimensions, how can I do that?
Thank you
11-20-2013 05:43 AM
Convert each row of the 2D array to an integer using Boolean Array to Number inside an auto-indexing For Loop.
11-20-2013 05:45 AM
11-21-2013 09:10 AM
Thank you very much both of you....
11-21-2013 01:38 PM
@ysma wrote:
Thank you very much both of you....
You can thank them by giving them Kudos.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord