Hey, I want to make the output return # as many times as a certain string has, and then, change each # with the corresponding letter in the original string to get a cool ouput.
This is my code so far but I got stuck:
function a = jamstr(strd,time)for i = 0:1:length(strd) z = i + 1; expression = '^.*'; replace = '#'; newStr = regexprep(strd(z),expression,replace) fprintf(newStr); pause(time); a=z; if z == length(strd) break endendend
Best Answer