Create a uniform empty cells between 2 data in excel file?
1 view (last 30 days)
I had a excel file having data at 30min interval for a day , size (48*1). Now I want to create it at 1min time interval with same data and keeping at same postion and between 2 data , create 30 empty cells.
for example see the excel file.......In desired output I only filled upto 6 data, simillary how can we fill it by matlab?
Raghunandan V on 12 Mar 2019
Please check this out:
[num, as,ads] = xlsread('m.xlsx');
%take the required data
A = num(1:48, 1:2);
B = zeros(30*48,2);
%initialize time stamp of B
B(:,1) = [1:30*48]';
B(((k-1)*30 +1):k*30,2) = A(k,2);
you can write the result B into the excel