function Sampling_arrayop(space,m)
%%%
%use array operations
%space is sampling rate
%m is the number of columns
%Created by Robin @ Saturday, December 09, 2006, HK
a=csvread('1.csv'); %read data from .csv file
b=a(1:space:end,1:m); %sampling data
header='Test name & Date'; %Header name
colnames={'ch1','ch2'}; %Column name
filename='Testnamei.xls'; %File name
sheetname='Sheet1'; %Sheet name
xlswrite(b,header,colnames,filename,sheetname); %xlswrite(b,header,colnames,filename,sheetname)
GMT+8, 2024-11-24 22:52 , Processed in 0.034124 second(s), 15 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.