Answers for "replace string matlab"

0

replace string matlab

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')
Posted by: Guest on October-19-2021

Browse Popular Code Answers by Language