Hi, I want to replace all the characters of a string by '-', say, flowers will be like '——-'. Please tell me how am I supposed to do that. I am totally new to matlab. As a beginner I've done this so far.
%Select a word
B='skyyiy'%input letter
c='y'%stringlength
l=strlength(B)%indices of letters occurring
d=strfind(B,c)newStr=strrep(B,c,'-')
Best Answer