second arg of size must be a scalar

Jaroslav Hajek highegg at gmail.com
Fri Mar 13 08:38:24 CDT 2009


On Fri, Mar 13, 2009 at 1:16 PM, Francesco Potorti` <Potorti at isti.cnr.it> wrote:
> Is this a limitation inherited from Matlab or just an oversight?
>
> In 3.1.54:
>
> octave> size(ll)(4:5)
> ans =
>
>   59   18
>
> octave> size(ll,[4:5])
> warning: implicit conversion from real matrix to real scalar
> ans =  59
>
> --
> Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
> ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
> via G. Moruzzi 1, I-56124 Pisa         Email: Potorti at isti.cnr.it
> (entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/
> _______________________________________________
> Bug-octave mailing list
> Bug-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave
>

It is a Matlab heritage. But I can't see any potential harm in such an
extension.

regards

-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



More information about the Bug-octave mailing list