09-11-2015 10:44 AM
Hi
its a example for split a 2D array to two seprate 1D array
09-11-2015 11:40 AM
@NAS2000CO wrote:
its a example for split a 2D array to two seprate 1D array
This is overly compicated pure Rube Goldberg code.
See also my reply to your other post.
09-25-2015 08:30 AM
Hi, Altenbach
Can you help me? Sorry for post in here, but I'am a new user and I couldn't find the right place to post.
I have a 2d array that I convert to a 2d Matrix, but I need to convert this matrix (in fact, this matrix is a image, where each pixel is one element of the matrix) to a 1d array (or 1d matrix, I don't if this is possible). But I need that every single element being present in this new 1d array, I can't lost none of this elements.
In essence, I need an algorithm that put "each column below the other".
This is how my code is until now.
Thanks
09-25-2015 08:42 AM - edited 09-25-2015 08:43 AM
Why do you need a matrix? Just work with arrays.
You can use reshape array. You justy need to transpose the array first.
This is Altenbach's message 9. Just with the transpose array added.
09-25-2015 08:42 AM - edited 09-25-2015 08:43 AM
Hi jvc,
you can create new threads by posting a question. Did you notice the "How to…" links in the upper right of the main forum page?
On your question: one TransposeArray does the trick:
Edit: RavensFan was faster - with the very same solution… 😄
09-25-2015 09:07 AM
Thank you so much for your help and the next I will post in the right place!