[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51231] textscan skips line ending
From: |
Julius Popp |
Subject: |
[Octave-bug-tracker] [bug #51231] textscan skips line ending |
Date: |
Tue, 13 Jun 2017 09:21:39 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 |
URL:
<http://savannah.gnu.org/bugs/?51231>
Summary: textscan skips line ending
Project: GNU Octave
Submitted by: juliuspopp
Submitted on: Tue 13 Jun 2017 01:21:38 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Microsoft Windows
_______________________________________________________
Details:
M = [11 12; 21 22; 31 32];
filename = 'testAscii.txt';
dlmwrite(filename, M, ' ');
fid = fopen(filename);
data = textscan(fid, '%s %s %s', 1) % should only read 1 line
data =
{
[1,1] =
{
[1,1] = 11
}
[1,2] =
{
[1,1] = 12
}
[1,3] =
{
[1,1] = 21
}
}
>>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51231>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51231] textscan skips line ending,
Julius Popp <=