function move(filename)
fileContent = fileread(filename);
fileContent = regexprep(fileContent, '%.*?\n', '\n');
fileContent = regexprep(fileContent, '\n\s*\n', '\n');
fileId = fopen(filename, 'w');
fwrite(fileId, fileContent);
fclose(fileId);
end
matlab删除空行以及注释
最新推荐文章于 2024-04-28 16:03:26 发布