[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cell-array display in class
From: |
Colin Macdonald |
Subject: |
Re: cell-array display in class |
Date: |
Thu, 30 Apr 2015 15:51:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 30/04/15 10:19, Colin Macdonald wrote:
Other option might be leave `display` alone and change Octave to have
cell arrays render using `disp`, which can return a string (which we
then manipulate).
I created a patch, bit horrid even by my standards. Feedback? Should I
cleanup a little an put on Savannah? Maybe the global variable thing is
better...
-----------------
Here's it in action:
>> pkg load symbolic
>> pkg load interval
>> syms x
>> {1 3 x x+sin(x/2) [x 2; pi x/2] infsup(0,1) {1 infsup(1,2); 3 x}}
ans =
{
[1,1] = 1
[1,2] = 3
[1,3] = x
[1,4] =
⎛x⎞
x + sin⎜─⎟
⎝2⎠
[1,5] =
⎡x 2⎤
⎢ ⎥
⎢ x⎥
⎢π ─⎥
⎣ 2⎦
[1,6] = <class infsup>
[1,7] =
{
[1,1] = 1
[2,1] = 3
[1,2] = <class infsup>
[2,2] = x
}
}
>>
Notice @infsup has no disp.m so gets a place-holder.
wip-cell_array_display.patch
Description: Text Data
- cell-array display in class, Colin Macdonald, 2015/04/26
- Re: cell-array display in class, Oliver Heimlich, 2015/04/27
- Re: cell-array display in class, Oliver Heimlich, 2015/04/27
- Re: cell-array display in class, Colin Macdonald, 2015/04/29
- Re: cell-array display in class, Colin Macdonald, 2015/04/29
- Re: cell-array display in class, Oliver Heimlich, 2015/04/30
- Re: cell-array display in class, Colin Macdonald, 2015/04/30
- Re: cell-array display in class,
Colin Macdonald <=
- Re: cell-array display in class, Oliver Heimlich, 2015/04/30