Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: Extract values from a string

$
0
0
On 12/15/2012 11:20 AM, Tiger wrote:
> Hi folks,
>
> Suppose the following:
> a = '1.4.6.5.11'; % String
>
> I want to be able to extract those numbers, in variable 'a',
> individually and assign them into another variable 'b', such b = {1, 4,
> 6, 5, 11};
...

b=sscanf(a,'%d.');

--

Viewing all articles
Browse latest Browse all 19628

Latest Images

Trending Articles



Latest Images