Re: [OctDev] minmax

2012-11-08 Thread Carnë Draug
On 21 October 2012 15:15,  giorgio.denun...@unisalento.it wrote:
 Hi!
 there is a difference between matlab's minmax, and octave nnet pkg's min_max.

 In matlab:
 minmax([1 2 3 4 3 4 5 6 4 3 4 5])
 gives
 ans =
  1 6

 In octave with nnet:
 min_max([1 2 3 4 3 4 5 6 4 3 4 5])
 gives
 error: Argument must be a matrix.

 Octave does not like the input image to be a single line.

On 8 November 2012 01:52, Salva Ardid jsar...@gmail.com wrote:
 I recently ran into these troubles too.

Hi Giorgio and Salva

please give the following new version function a try
https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/nnet/inst/minmax.m

Carnë Draug

--
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


Re: [OctDev] minmax

2012-11-08 Thread Salva Ardid
Hi Carnë,

The link seems to be broken

Salva

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

 On 21 October 2012 15:15,  giorgio.denun...@unisalento.it wrote:
  Hi!
  there is a difference between matlab's minmax, and octave nnet pkg's
  min_max.
  
  In matlab:
  minmax([1 2 3 4 3 4 5 6 4 3 4 5])
  gives
  ans =
  
   1 6
  
  In octave with nnet:
  min_max([1 2 3 4 3 4 5 6 4 3 4 5])
  gives
  error: Argument must be a matrix.
  
  Octave does not like the input image to be a single line.
 
 On 8 November 2012 01:52, Salva Ardid jsar...@gmail.com wrote:
  I recently ran into these troubles too.
 
 Hi Giorgio and Salva
 
 please give the following new version function a try
 https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/nne
 t/inst/minmax.m
 
 Carnë Draug

--
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


Re: [OctDev] minmax

2012-11-08 Thread Carnë Draug
Please avoid top posting and reply at the bottom of the e-mail

On 8 November 2012 12:57, Salva Ardid jsar...@gmail.com wrote:
 El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure:

 On 21 October 2012 15:15,  giorgio.denun...@unisalento.it wrote:
  Hi!
  there is a difference between matlab's minmax, and octave nnet pkg's
  min_max.
 
  In matlab:
  minmax([1 2 3 4 3 4 5 6 4 3 4 5])
  gives
  ans =
 
   1 6
 
  In octave with nnet:
  min_max([1 2 3 4 3 4 5 6 4 3 4 5])
  gives
  error: Argument must be a matrix.
 
  Octave does not like the input image to be a single line.

 On 8 November 2012 01:52, Salva Ardid jsar...@gmail.com wrote:
  I recently ran into these troubles too.

 Hi Giorgio and Salva

 please give the following new version function a try
 https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/nne
 t/inst/minmax.m

 Hi Carnë,

 The link seems to be broken

 Salva

Seems to be one more problem of the new SF code viewer. It also
appears to be 2 revisions behind. Use SVN to get it

svn cat -r 11403
https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minmax.m

or wait some time until sourceforge updates it.

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


Re: [OctDev] minmax

2012-11-08 Thread Salva Ardid
 Please avoid top posting and reply at the bottom of the e-mail
 
 On 8 November 2012 12:57, Salva Ardid jsar...@gmail.com wrote:
  El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure:
  On 21 October 2012 15:15,  giorgio.denun...@unisalento.it wrote:
   Hi!
   there is a difference between matlab's minmax, and octave nnet pkg's
   min_max.
   
   In matlab:
   minmax([1 2 3 4 3 4 5 6 4 3 4 5])
   gives
   ans =
   
1 6
   
   In octave with nnet:
   min_max([1 2 3 4 3 4 5 6 4 3 4 5])
   gives
   error: Argument must be a matrix.
   
   Octave does not like the input image to be a single line.
  
  On 8 November 2012 01:52, Salva Ardid jsar...@gmail.com wrote:
   I recently ran into these troubles too.
  
  Hi Giorgio and Salva
  
  please give the following new version function a try
  https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/
  nne t/inst/minmax.m
  
  Hi Carnë,
  
  The link seems to be broken
  
  Salva
 
 Seems to be one more problem of the new SF code viewer. It also
 appears to be 2 revisions behind. Use SVN to get it
 
 svn cat -r 11403
 https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minm
 ax.m
 
 or wait some time until sourceforge updates it.
 
 Carnë

Sorry, it's the way I use to work, I'll try to keep this in mind for next e-
mails though...

--
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


Re: [OctDev] minmax

2012-11-08 Thread Salva Ardid
El Dijous, 8 de novembre de 2012, a les 13:09:03, Carnë Draug va escriure:

 Please avoid top posting and reply at the bottom of the e-mail
 
 On 8 November 2012 12:57, Salva Ardid jsar...@gmail.com wrote:
  El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure:
  On 21 October 2012 15:15,  giorgio.denun...@unisalento.it wrote:
   Hi!
   there is a difference between matlab's minmax, and octave nnet pkg's
   min_max.
   
   In matlab:
   minmax([1 2 3 4 3 4 5 6 4 3 4 5])
   gives
   ans =
   
1 6
   
   In octave with nnet:
   min_max([1 2 3 4 3 4 5 6 4 3 4 5])
   gives
   error: Argument must be a matrix.
   
   Octave does not like the input image to be a single line.
  
  On 8 November 2012 01:52, Salva Ardid jsar...@gmail.com wrote:
   I recently ran into these troubles too.
  
  Hi Giorgio and Salva
  
  please give the following new version function a try
  https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/
  nne t/inst/minmax.m
  
  Hi Carnë,
  
  The link seems to be broken
  
  Salva
 
 Seems to be one more problem of the new SF code viewer. It also
 appears to be 2 revisions behind. Use SVN to get it
 
 svn cat -r 11403
 https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minm
 ax.m
 
 or wait some time until sourceforge updates it.
 
 Carnë

I've just checked one of my scripts and works nicely!


--
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


Re: [OctDev] minmax

2012-11-08 Thread Carnë Draug
On 8 November 2012 16:10, Salva Ardid jsar...@gmail.com wrote:
 El Dijous, 8 de novembre de 2012, a les 13:09:03, Carnë Draug va escriure:

 Please avoid top posting and reply at the bottom of the e-mail

 On 8 November 2012 12:57, Salva Ardid jsar...@gmail.com wrote:
  El Dijous, 8 de novembre de 2012, a les 11:46:19, Carnë Draug va escriure:
  On 21 October 2012 15:15,  giorgio.denun...@unisalento.it wrote:
   Hi!
   there is a difference between matlab's minmax, and octave nnet pkg's
   min_max.
  
   In matlab:
   minmax([1 2 3 4 3 4 5 6 4 3 4 5])
   gives
   ans =
  
1 6
  
   In octave with nnet:
   min_max([1 2 3 4 3 4 5 6 4 3 4 5])
   gives
   error: Argument must be a matrix.
  
   Octave does not like the input image to be a single line.
 
  On 8 November 2012 01:52, Salva Ardid jsar...@gmail.com wrote:
   I recently ran into these troubles too.
 
  Hi Giorgio and Salva
 
  please give the following new version function a try
  https://sourceforge.net/p/octave/code/11403/tree/trunk/octave-forge/main/
  nne t/inst/minmax.m
 
  Hi Carnë,
 
  The link seems to be broken
 
  Salva

 Seems to be one more problem of the new SF code viewer. It also
 appears to be 2 revisions behind. Use SVN to get it

 svn cat -r 11403
 https://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/nnet/inst/minm
 ax.m

 or wait some time until sourceforge updates it.

 Carnë

 I've just checked one of my scripts and works nicely!

That's good. I have made a couple of simple changes to the package now
but have no idea of its actual state as I can't really test it. My
guess would be that it's a bit broken since it's quite old and Octave
has changed a lot in the mean time. Please test it, and if possible,
send us patches.

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


Re: [OctDev] minmax

2012-11-07 Thread Carnë Draug
On 21 October 2012 15:15,  giorgio.denun...@unisalento.it wrote:
 Hi!
 there is a difference between matlab's minmax, and octave nnet pkg's min_max.

 In matlab:
 minmax([1 2 3 4 3 4 5 6 4 3 4 5])
 gives
 ans =
  1 6

 In octave with nnet:
 min_max([1 2 3 4 3 4 5 6 4 3 4 5])
 gives
 error: Argument must be a matrix.

 Octave does not like the input image to be a single line.

 Best regards!
 Ciao
 Giorgio

Hi Giorgio

could you please tell me what matlab's minmax returns in the following cases?

minmax (1)
minmax ([i 2; 3 4])
minmax (rand (2,2,2))
minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]})
minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2] [9 7 3]})
minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3; 8 0 2]})

I would expect that some, maybe all, will fail but would like to be
sure to fix this.

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


Re: [OctDev] minmax

2012-11-07 Thread Salva Ardid
Hi,

I recently ran into these troubles too.

It's nice if this can get fixed. And unless some particular reason I may not 
know, I would suggest to use the same name as in matlab (minmax instead of, or 
in addition to min_max) so code is consistent.

I also checked what you asked in matlab r2012b:

 minmax (1)

ans =

 1 1

 minmax ([i 2; 3 4])
Error using minmax (line 27)
Data is complex.
 
 minmax (rand (2,2,2))
Error using minmax (line 27)
Data is not two-dimensional.
 
 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.
 
 minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2] [9 7 3]})
Error using minmax (line 27)
Data{2,2} and Data{1,1} have different numbers of columns.
 
 minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3; 8 0 2]})
Error using minmax (line 27)
Data{1,2} and Data{1,1} have different numbers of columns.

Thanks,
Salva

El Dijous, 8 de novembre de 2012, a les 01:08:09, Carnë Draug va escriure:

 minmax (1)
 minmax ([i 2; 3 4])
 minmax (rand (2,2,2))
 minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3]})
 minmax ({[0 1; -1 -2] [2 3; 8 0]; [1 -2] [9 7 3]})
 minmax ({[0 1; -1 -2] [2 3 -2; 8 0 2]; [1 -2] [9 7 3; 8 0 2]})

--
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


Re: [OctDev] minmax

2012-11-07 Thread Carnë Draug
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


Re: [OctDev] minmax

2012-11-07 Thread Salva Ardid
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


Re: [OctDev] minmax

2012-11-07 Thread Carnë Draug
On 8 November 2012 02:23, Salva Ardid jsar...@gmail.com wrote:
 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]

Could you tell me what this values are exactly? It's not clear to me
from their documentation what they are computing.

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


Re: [OctDev] minmax

2012-11-07 Thread Salva Ardid
Sure!

 x=minmax ({[0 1; -1 -2; 34 56] [2 3; 8 0; 21 23]; [1 -2; 9 7] [12 5; 13 
11]})

x = 

[3x2 double]
[2x2 double]

 x{1}

ans =

 0 3
-2 8
2156

 x{2}

ans =

-212
 713

Salva

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

 On 8 November 2012 02:23, Salva Ardid jsar...@gmail.com wrote:
  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]
 
 Could you tell me what this values are exactly? It's not clear to me
 from their documentation what they are computing.
 
 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