[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42341] strrep() matlab compatibility when out
From: |
sergey plotnikov |
Subject: |
[Octave-bug-tracker] [bug #42341] strrep() matlab compatibility when output is empty |
Date: |
Mon, 12 May 2014 16:19:05 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?42341>
Summary: strrep() matlab compatibility when output is empty
Project: GNU Octave
Submitted by: nul0m
Submitted on: Mon 12 May 2014 04:19:03 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
There's a difference between Matlab's and Octave's dimensions of output when
result is supposed to be an empty string.
See the following example:
>> size(strrep('a','a','')) % Octave
ans =
1 0
------------------------------------
>> size(strrep('a','a','')) % Matlab
ans =
0 0
Matlab's result is more consistent with the result of _size()_ for an empty
string which is actual output of strrep() above.
>> size('') % both -- Octave and ML
ans =
0 0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42341>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42341] strrep() matlab compatibility when output is empty,
sergey plotnikov <=