Can anybody help me in writing MATLAB code?i have an .xls file of 2950 sequence .i want a function to read my file and select sequence 1,11,21,31 and write it on another new .xls file, then select 2,12,22 and similarly uptill 10,20,30...etc
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
George
2016-11-2
% Pseudocode
T = readtable('file.xlsx');
for ii=1:10
rows = ii:10:height(T);
writetable(T(rows,:), ['filename' ii '.xlsx']);
end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!