[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51848] Variable editor should show text strin
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells |
Date: |
Wed, 31 Jan 2018 17:31:19 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #16, bug #51848 (project octave):
I see what you are saying, but try something which is a full cellstr such as
x = {"Hello", "World", "!"}
openvar x
Now try changing the second element to a number
x{2} = 5;
On my machine, the first cellstr example works as well as the next example.
I think there is an error in how Octave is computing whether something is a
string (1xN vector) or a char array (MxN).
Try
x = num2cell (rand (3))
openvar x
x{1,1} = "Hello"
x{2,1} = "World"
The first element of x displays as a string; the second element displays as
'[1x5 string]'.
See the attached screenshot.
(file #43146)
_______________________________________________________
Additional Item Attachment:
File name: Screenshot_20180131_143021.png Size:18 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51848>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, (continued)
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Rik, 2018/01/29
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Rik, 2018/01/29
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Philip Nienhuis, 2018/01/30
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Philip Nienhuis, 2018/01/30
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, John W. Eaton, 2018/01/30
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Rik, 2018/01/30
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, John W. Eaton, 2018/01/30
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Rik, 2018/01/31
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Philip Nienhuis, 2018/01/31
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, John W. Eaton, 2018/01/31
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells,
Rik <=
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Rik, 2018/01/31
- [Octave-bug-tracker] [bug #51848] Variable editor should show text strings in one cell, not as separate chars each in distinct cells, Philip Nienhuis, 2018/01/31