3657| 2
|
matlab读取多个excel文件并合并到一个新的excel中 |
发表于 2020-12-27 15:55
80吾爱币
最佳答案代码如下:
[mw_shl_code=text,true]
path = '.\';
de = dir(strcat(path, '*.xlsx'));
num = length(de);
res = {};
for i=1:num
name = de(i).name;
A = readcell();
if i==1
res = A;
else
res = [res; A(2:end, :)];
end
end
% replace missing value to ''
mask = cellfun(@ismissing, res, 'UniformOutput', false);
% replace 0 array to 0
mask = cellfun(@sum, ma ...
| ||
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
||
发表于 2020-12-27 15:55
免费评分 | ||
|
发表于 2020-12-27 19:31
| ||
RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )
GMT+8, 2024-5-9 03:26
Powered by Discuz!
Copyright © 2001-2020, Tencent Cloud.