For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is demo of replacing spaces with stars'; Then, out = 'this*is*demo*of*replacing*spaces*with*stars'
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more