MATLAB: Writing a program on matlab g++ Hi, I have to write a program that asks you to enter a number and then shows how many digits it has. Who can help me? Best Answer a=input('Enter a number\n');dig=numel(num2str(a)) Related SolutionsMATLAB: How to define string character It creates a string (character array) containing just a single space character. MATLAB: Add / before _ in a string There are many ways to do this, the simplest way is by the command "strrep" str = 'Mean_Tumor_Radius_prolif'replaced_str = strrep(str, '_', '/_');replaced_str = 'Mean/_Tumor/_Radius/_prolif' Related QuestionHow to randomly change a digit in a stringReplace comma to dot
Best Answer