LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find min value and quantity in 2D array

Solved!
Go to solution

please help i find min value but i can't find quantity

0 Kudos
Message 1 of 10
(5,181 Views)

please be more elaborate what you want,

unfortunately i can't read turkish (?).

what do you mean by quantity, the number of elements in an array?


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 2 of 10
(5,171 Views)

How many times? For example 4 Times min value in Photo.excuse me my english bad 

0 Kudos
Message 3 of 10
(5,164 Views)
Solution
Accepted by topic author orhnglsn

Array min&max will give you the value.. Compare it with equal to the 2D array, convert the resulting 2D boolean array to 0,1, then sum the array elements.

 

 

 

(if the arrays is very large, insert a ToI32 before the sum. For large arrays, you might want to limit all the additional 2D array allocations)

Message 4 of 10
(5,152 Views)

Thank you a lot. 

0 Kudos
Message 5 of 10
(5,137 Views)

minimum-occurrences.png

 

 

<edit> too slow 😉 </edit>


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 6 of 10
(5,133 Views)

How can i seperate digit in array this example last example please help me 

0 Kudos
Message 7 of 10
(5,101 Views)

Yeah, Ben already told you how to do that here.  You might want to actually do some of your homework yourself, instead of asking others to do it for you.

Message 8 of 10
(5,093 Views)

@Mancho00 wrote:

Yeah, Ben already told you how to do that here.  You might want to actually do some of your homework yourself, instead of asking others to do it for you.


I know Just i ask one example other example search and try but this example hard for me because i am at first class in university

0 Kudos
Message 9 of 10
(5,089 Views)

@orhnglsn wrote:


I know Just i ask one example other example search and try but this example hard for me because i am at first class in university


Everything you need to know was probably taught in class. Did you miss class?

 

Also remember that your teachers are reading this forum too. so if you get a solution here, make sure to fully study it in detail so you can explain the purpose of every single code element, what it does and why it is needed. Make sure that you can recreate the code from scratch starting with a blank VI.

Message 10 of 10
(5,068 Views)