我是 MATLAB 脚本的新手。我有一个要删除的字符串,该字符串来自一个数组结构文件。要删除的字符串在每个循环中都不同。我可以将更改的字符串存储在变量中并使用变量和删除该字符串strrep
吗?例如:
%% string i want to delete is "is_count_del=auto;"
delstrng=is_count_del_auto;
%%filetext is the name of the file from which is_count_del=auto; is to be deleted
r=strrep(filetext,'delstrng','');
我想我没有strrep
正确使用。怎样才能达到预期的结果?