📜  替换字符串 matlab - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:58.080000             🧑  作者: Mango

代码示例1
Let's say you have this string:
str = 'I drink a soda'
and want to replace soda with coffee. That's how:
newStr = strrep(str,'soda','coffee')