|
From: | Colin Macdonald |
Subject: | cell-array display in class |
Date: | Sun, 26 Apr 2015 21:35:04 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
Hi,I like how Octave displays cell arrays. Is it possible to enable the `[i,j] = ` display in my own class? If so, how? If not, I'll file a bug to improve on the status quo shown below.
Example: good:
>> C = {1 2; 3 4} C = { [1,1] = 1 [2,1] = 3 [1,2] = 2 [2,2] = 4 }
Not so good:
>> pkg load symbolic >> pkg load interval >> C(2,1) = sym('x') C = { [1,1] = 1 (sym) x [1,2] = 2 [2,2] = 4 } >> C(2,2) = infsup(0,5) C = { [1,1] = 1 (sym) x [1,2] = 2 [0, 5] }
FWIW, Matrix would say:
C = [1] [ 2] [1x1 sym] [1x1 infsup]
But I rather like Octave's approach. -- Colin Macdonald Associate Professor Tutorial Fellow at Oriel College University of Oxford
[Prev in Thread] | Current Thread | [Next in Thread] |