[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55021] strsplit silently ignores rows in mult
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #55021] strsplit silently ignores rows in multi-row char array |
Date: |
Wed, 14 Nov 2018 07:11:30 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
URL:
<https://savannah.gnu.org/bugs/?55021>
Summary: strsplit silently ignores rows in multi-row char
array
Project: GNU Octave
Submitted by: carandraug
Submitted on: Wed 14 Nov 2018 12:11:28 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Missed Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The function strsplit takes a char array. If the char array has more than one
row, then only the first row is handled and the others are silently ignored:
octave:1> x = reshape ("axbycz", [2, 3])
x =
abc
xyz
octave:2> strsplit (x)
ans =
{
[1,1] = abc
}
Not sure what Matlab is doing this days, but in 2013b, it was error saying
that input was not a string:
>> x = reshape ('axbycz', [2 3]);
>> strsplit (x)
Error using strsplit (line 81)
First input must be a string.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55021>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55021] strsplit silently ignores rows in multi-row char array,
Carnë Draug <=