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


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
How do you get Matlab to recognize 1000 digit numbers without
Replies:
2
Last Post:
Feb 21, 2013 9:52 AM




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



