[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52702] extra spaces in "char" and "strvcat" d
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #52702] extra spaces in "char" and "strvcat" docstring |
Date: |
Tue, 19 Dec 2017 21:49:41 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?52702>
Summary: extra spaces in "char" and "strvcat" docstring
Project: GNU Octave
Submitted by: None
Submitted on: Wed 20 Dec 2017 02:49:40 AM UTC
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: GNU/Linux
_______________________________________________________
Details:
Run the examples in the "char" and "strvcat" docstring:
octave:37> char ([97, 98, 99], "", {"98", "99", 100}, "str1", ["ha", "lf"])
ans =
abc
98
99
d
str1
half
octave:38> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 7x4 28 char
Total is 28 elements using 28 bytes
octave:39> strvcat ([97, 98, 99], "", {"98", "99", 100}, "str1", ["ha",
"lf"])
ans =
abc
98
99
d
str1
half
octave:40> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 6x4 24 char
Total is 24 elements using 24 bytes
But the help text of "char" and "strvcat" says that
char ([97, 98, 99], "", {"98", "99", 100}, "str1", ["ha", "lf"])
=> ["abc "
" "
"98 "
"99 "
"d "
"str1 "
"half "]
strvcat ([97, 98, 99], "", {"98", "99", 100}, "str1", ["ha", "lf"])
=> ["abc "
"98 "
"99 "
"d "
"str1 "
"half "]
which should be
char ([97, 98, 99], "", {"98", "99", 100}, "str1", ["ha", "lf"])
=> ["abc "
" "
"98 "
"99 "
"d "
"str1"
"half"]
strvcat ([97, 98, 99], "", {"98", "99", 100}, "str1", ["ha", "lf"])
=> ["abc "
"98 "
"99 "
"d "
"str1"
"half"]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52702>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52702] extra spaces in "char" and "strvcat" docstring,
anonymous <=