goals for 3.1
David Bateman
David.Bateman at motorola.com
Thu Mar 20 11:43:41 CDT 2008
John W. Eaton wrote:
> I'm not sure about additional fucntions but in addition to working on
> numeric data, these functionns should also work on character, struct,
> and cell arrays.
>
>
There is a compatibility issue with the triu, tril and diag functions
with structure arrays between Octave and Matlab. Basically Matlab
doesn't allow structure arrays with these functions, but Octave does..
However what is returned by Octave doesn't really make any sense.. Consider
d = triu (struct ('fld',num2cell([1,2;3,4])))
d(2,1).fld
The triu on the struct returns the cell (2,1) with an empty octave-value
and so d(2,1).fld returns nothing. This is quite a surprising and
probably useless feature.. Similar issues exist in tril and diag. Should
we keep this feature, it which case it should be documented, or should
we just fail for structures like Matlab does?
Regards
David
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the Octave-maintainers
mailing list