LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to Split an 1D array into number of sub arrays

I have a question brothers. Can you help me please?

I want to read the data continuously from the excel sheet but into equal data. For example: If I have a data of 5000 samples, I want to read the data with equal length of 1000 samples like 0-999, 1000-1999, 2000-2999, 3000-3999, 4000-4999. If you have any solution, please help me by giving an Idea. i want this data for pre-processing like ICA, Bandpass filter etc 

Thank You.

0 Kudos
Message 11 of 14
(942 Views)

@Mahi8337 wrote:

I have a question brothers. Can you help me please?

I want to read the data continuously from the excel sheet but into equal data. For example: If I have a data of 5000 samples, I want to read the data with equal length of 1000 samples like 0-999, 1000-1999, 2000-2999, 3000-3999, 4000-4999. If you have any solution, please help me by giving an Idea. i want this data for pre-processing like ICA, Bandpass filter etc 

Thank You.


 

Read all data as one 1D array, then use a FOR loop where you take a subset based on the iteration terminal. (index=[i] x 1000, size=1000) or you can reshape the array into a 2D array with 1000 columns an autoindex on a FOR loop.

 

You still need to decide what to do in the last iteration if there is a remainder.

 

(If this is difficult for you, use the learning resources listed at the top of the forum. )

Message 12 of 14
(931 Views)

See if this can give you some ideas:

 

altenbach_0-1662823455534.png

 

Message 13 of 14
(928 Views)

Thank you very much for your design. This would help me a lot.. 

0 Kudos
Message 14 of 14
(895 Views)