[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Octave doesn't show quotes when strings which are cell array values are
From: |
Sergei Steshenko |
Subject: |
Octave doesn't show quotes when strings which are cell array values are displayed |
Date: |
Sun, 25 Nov 2012 02:31:03 -0800 (PST) |
Hello,
here is a screen session:
"
octave:27> CA{1}{1} = 2012
CA =
{
[1,1] =
{
[1,1] = 2012
}
}
octave:28> CA{1}{2} = "2012"
CA =
{
[1,1] =
{
[1,1] = 2012
[1,2] = 2012
}
}
octave:29> whos("CA{1}{1}")
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
CA{1}{1} 1x1 8 double
Total is 1 element using 8 bytes
octave:30> whos("CA{1}{2}")
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
CA{1}{2} 1x4 4 char
Total is 4 elements using 4 bytes
octave:31>
".
One can see that except for whitespaces both '2012' are displayed the same way,
though Octave internally knows type - double vs char.
So, why some kind of quotes is not displayed to indicate string values ?
Thanks,
Sergei.
- Octave doesn't show quotes when strings which are cell array values are displayed,
Sergei Steshenko <=