08-21-2008 10:53 AM
hi all
I have a 2d array I would like to split the first row and then divide the first row from all other rows of the array one to one.........like divide first element of first row with all the elements of first column of array, second element of first row wth all the elements of second column of array and likewise .plz help me
08-21-2008 11:24 AM - edited 08-21-2008 11:25 AM
08-21-2008 11:29 AM - edited 08-21-2008 11:30 AM
Hi
I have produced this simple bit of code in LV8.5.
Let me know what you think.
Regards,
*I have just seen the result from before - maybe I misunderstand what you were trying to do. If I have, sorry.
08-22-2008 12:53 AM
08-22-2008 02:00 AM
08-22-2008 02:32 AM
Hi
Here you go.
Regards,
08-22-2008 03:02 AM
Sorry, but I don't think Hillmann's solution is correct. It is also extremely convoluted and overly complicated. Starting with a 2D array, his solution is an array with a single column, which I don't think is what you want.
Some things that struck me oddly in Hillmann's solution:
04998285626, could you explain once more what kind of output do you actually want. I am pretty sure my solution is close. You might need to remove the first row of the output or swap the inputs of the divide node.
Lets say the array is:
1 2 3
4 5 6
7 8 9
What would be the correct solution you want?
08-22-2008 03:54 AM
hi.....
I tried hilman's approach. Its not the exact solution that I wanted. Altenbach's solution is working fine for the problem that I posed. Thats what I exactly want . Anyway I have carried it out in another way as mentioned in my earlier reply....thanks all for ur response
08-27-2008 05:59 AM - edited 08-27-2008 05:59 AM
Hi,
I am sorry for the code I sent - my replies are normally better than that. I also felt I miss-understood what you wanted.
Happy Labviewing.
Regards,