clc
clear
close all
%% Read module
file_name = 'stru3all3.22(3).xlsx'
read_file_in_ml = readtable(file_name);
post_file_name = '修改后变量.xlsx';
[m,n] = size(read_file_in_ml);
Debug1 = read_file_in_ml.subset(1);
Debug3 = cell(m,n);
readCell = cell(m,n);
size(read_file_in_ml)
%% Process
% Use strsplit to split the variable in a column and get its num
for i = 1: m
Debug2 = read_file_in_ml.subset(i);
Debug3{i,2} = strsplit(Debug2{1,1});
[c,Debug3{i,4}]=size(Debug3{i,2});
read_file_in_ml{i,4} =Debug3{i,4};
end
%% Clear nouse row
toDelete = read_file_in_ml.Var4 < 5;
read_file_in_ml(toDelete,:) = [];
%% Write new table
size(read_file_in_ml)
writetable(read_file_in_ml,post_file_name,'Sheet',1,'Range','A1')