Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69019

How would you remove every 6th (or nth) element of an array?

$
0
0

Thanks to altenbach (see http://forums.ni.com/t5/LabVIEW/How-can-I-restructure-an-unfavourable-2D-array-format-to-1D/m-p/2463946/highlight/true#M755306) I've managed to arrange my 2D array data into a 1D column. Unfortunately the format of the data files is tab delimited, which wouldn't be a problem, except there is an extra tab on the end of each row, generating a zero for every 6th element in the column. Having reshaped the original 2D array into a 1D array, how can I remove all these zeroes? Attached is a sample data file of the original 2D data for one measurement and the 1D corrected version I've managed to generate for all data; note the 2D raw data file also has a header and footer, which I've been able to remove myself...


Viewing all articles
Browse latest Browse all 69019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>