Yes, it seems they have a bug in their own code or that the example is just 
wrong:

>> P = {[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]};
>> pr = minmax(P)
Error using minmax (line 27)
Data{1,2} and Data{1,1} have different numbers of columns.
 
>> minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2; 9 7] [12 5; 13 11]})

ans = 

    [2x2 double]
    [2x2 double]

>> minmax ({[0 1; -1 -2] [2 3; 8 0; 85 75]; [1 -2; 9 7] [12 5; 13 11]})
Error using minmax (line 27)
Data{1,2} and Data{1,1} have different numbers of rows.
 
>> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0]; [1 -2; 9 7; 21 23] [12 5; 13 11]})
Error using minmax (line 27)
Data{1,2} and Data{1,1} have different numbers of rows.
 
>> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 11]})

ans = 

    [3x2 double]
    [2x2 double]

Salva

El Dijous, 8 de novembre de 2012, a les 02:19:06, Carnë Draug va escriure:

> On 8 November 2012 01:52, Salva Ardid <jsar...@gmail.com> wrote:
> >>> minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]})
> >
> >Error using minmax (line 27)
> >Data{1,2} and Data{1,1} have different numbers of columns.
> 
> This is weird. This an example taken from Matlab's own documentation
> 
> http://www.mathworks.co.uk/help/nnet/ref/minmax.html
> 
> It should have not failed. Could you tell me what does the following
> returns then?
> 
> minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2; 9 7] [12 5; 13 11]})
> minmax ({[0 1; -1 -2] [2 3; 8 0; 85 75]; [1 -2; 9 7] [12 5; 13 11]})
> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0]; [1 -2; 9 7; 21 23] [12 5; 13 11]})
> minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 11]})
> 
> Carnë

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to