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
正しく使用していないと思います。どうすれば望ましい結果を達成できますか?