octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: goals for 3.1


From: David Bateman
Subject: Re: goals for 3.1
Date: Thu, 20 Mar 2008 17:43:41 +0100
User-agent: Thunderbird 2.0.0.12 (X11/20080306)

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                                address@hidden
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]