How to apply function "strrep" to multiple substrings
Ältere Kommentare anzeigen
Hi there,
It would be my great pleasure if anyone could assist me with the following error, caused after I applied strrep:
newIDFFile = strrep(readIDFFile, {'@@P1@@', num2str(u_gen_s)}, {'@@P2@@', num2str(u_gen_w)}, {'@@P3@@', num2str(u_gen_e)}, {'@@P4@@', num2str(u_gen_n)});
Also, I tried the following format:
newIDFFile = strrep(readIDFFile, '@@P1@@', num2str(u_gen_s), '@@P2@@', num2str(u_gen_w), '@@P3@@', num2str(u_gen_e), '@@P4@@', num2str(u_gen_n));
while the error message is:
Error using strrep
Too many input arguments.
1 Kommentar
Fangjun Jiang
am 2 Sep. 2020
The syntax is in "doc strrep".
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!