This is what i have but it wont compute anything..
number = input('Enter a number here:'); function result = mySum(numbers) numbers = num2str(number) - '0'; if length(numbers) == 0 result = 0; else result = numbers(end) + mySum(numbers(1:end - 1)); end end
Best Answer