From: Salva A. <js...@gm...> - 2012-11-08 01:52:52
|
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]}) |