Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: How do you get Matlab to recognize 1000 digit numbers without
Posted:
Feb 21, 2013 8:24 AM


On 06.01.13 08:20, Allen wrote:
> The problem gives you a specific number, so I would have to enter in a commas between every digit which for obvious reason would be very tedious...
>> str2num('1234567890'.').'
ans =
1 2 3 4 5 6 7 8 9 0
That easily works for an arbitrarily long positive integer number given as a string. Working out why is left as an exercise to the reader. :)
Christopher



