04-30-2013 11:03 AM
hello
kindly tell me how to sort a 2d array in a way that first check the first row and the highest element should be first element of the row then check the 2nd row and higsest element should be the first element of 2nd row and so on. in the result the first coulumn should have highest element from the corrosponding row.
thnx
04-30-2013 11:09 AM
Hi kitty,
use a FOR loop to autoindex your 2D array by rows.
In the loop you use Sort1DArray to sort the array in "upwards" direction and Reverse1DArray to have the largest value as first element.
At the output of the FOR loop you will receive your 2D array with sorted rows...
04-30-2013 01:20 PM - edited 04-30-2013 01:21 PM
thnx Gerdw
but would u plz design a vi of this program for me....? i have some problem to understand it...
thnx
04-30-2013 01:53 PM
05-01-2013 01:08 PM - edited 05-01-2013 01:09 PM
oh thnx GerdW!
itx realy works. and so simple too 🙂
thnx alot..
would u plz solve a problem about image processing?