12-16-2008 11:49 AM
Hello
I am having a 2D array with values. ( see figure) I need to take the first value of the array (index 0,0)for the first time and then elemnt in index (0,1) and then elemnt in index (1,0) and so on ..Lets say i need to do it for many time as the size of array.in figure 6 times...I tried to do it in a for loop. but it gives me only the same value for al the 6 times the loop runs.
Can anyone help?
12-16-2008 11:56 AM
It would use if you had shown your block diagram.
My advice is to use two loops nested one in the other, that should help.
If you want to add code look at the code Capture Tool it is great for this purpose, you select the part you want to capture, start the tool (Tools->Code Capture Tool), review your setting (FP-none, BD-selected, Clipboard-FileName), finish the capture.
Then you switch over to your internet browser, in the file dialog you past the file name from the clipboard and the file is attached.
To download
Ton
12-16-2008 12:02 PM - edited 12-16-2008 12:04 PM
12-16-2008 12:17 PM
You might be able to use the Reshape Array function
12-16-2008 12:23 PM - edited 12-16-2008 12:25 PM
Like this, although I didn't see this the first time I tried it. If you hadn't mentioned it I would have thought that function was for something else. I still don't know what it's for!
12-16-2008 01:27 PM
jcarmody wrote:
Your solution is too specific because you need to modify it if the # of columns changes. Here's the generic solution: