[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with sscanf
From: |
PhilipNienhuis |
Subject: |
Re: Help with sscanf |
Date: |
Tue, 24 Jul 2018 14:32:48 -0500 (CDT) |
Rik-4 wrote
> Could someone with access to Matlab try the following?
>
> [a,b,c,d] = sscanf ('1Inf2', '%f')
> [a,b,c,d] = sscanf ('1Infinity2', '%f')
>> format compact
>> [a,b,c,d] = sscanf ('1Inf2', '%f')
a =
1
Inf
2
b =
3
c =
0×0 empty char array
d =
6
>> [a,b,c,d] = sscanf ('1Infinity2', '%f')
a =
1
Inf
b =
2
c =
'Matching failure in format.'
d =
5
>>
Matlab r2018b prerelease
Philip
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html