[bug #51231] textscan skips line ending
Nicholas Jankowski <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #6, bug #51231 (group octave):
this bug status is still unchanged in octave 11.1.0 and matlab 2025a
removing the REPEAT argument, the two programs produce:
Octave 11.1.0
>> data = textscan(fid,"%s %s %s"); data{:}
>> data{:}
ans =
{
[1,1] = 11
[2,1] = 22
}
ans =
{
[1,1] = 12
[2,1] = 31
}
ans =
{
[1,1] = 21
[2,1] = 32
}
Matlab 2025a
>> data = textscan(fid,"%s %s %s"); data{:}
ans =
3×1 cell array
{'11'}
{'21'}
{'31'}
ans =
3×1 cell array
{'12'}
{'22'}
{'32'}
ans =
3×1 cell array
{0×0 char}
{0×0 char}
{0×0 char}
this was recently brought up in another discussion on the Octave discourse,
with a potential patch but some ongoing BIST concerns.
https://octave.discourse.group/t/please-help-me-understand-textscan/7435/10
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?51231>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCabm/cwAKCRCqLAuaBUf3 TmwmAQCG0lfvY5Hg1r5scCVMsfDf82aU7O3YL1kHsxE3AgKHHAEAyfcxFre2fiSU 1wDRYCzr4mO4bHzO5qWD3Pdd3LoIag8= =9NnL -----END PGP SIGNATURE-----