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 Question