error message from hist
John W. Eaton
jwe at bevo.che.wisc.edu
Mon May 12 20:47:56 CDT 2008
On 12-May-2008, Zwerg Alberich wrote:
| I tried to plot a histogram of my array MCResult
| octave:3> size(MCResult)
| ans =
| 1000 3 2
|
| octave:4> max(MCResult)
| ans =
| ans(:,:,1) =
| 3.2412e+05 1.0930e+05 1.0930e+05
| ans(:,:,2) =
| 446.555 84.306 84.306
|
| octave:5> min(MCResult)
| ans =
| ans(:,:,1) =
| 2.1226e+04 3.2322e+04 3.2322e+04
| ans(:,:,2) =
| -38.379 -29.447 -29.447
|
| with the following command:
|
| octave:3> hist(MCResult(:,:,2),[-30:5:300])
| error: number of columns must match (1 != 3)
| error: evaluating argument list element number 1
| error: evaluating if command near line 94, column 3
| error: called from `hist' in file `/usr/share/octave/2.9.12/m/plot/hist.m'
|
| unfortunately, this did not work.
| The command hist(MCResult(:,:,2),[-30:20:300]) worked however fine.
|
| I changed therefore the number "30" in line 94 of file `/usr/share/octave/2.9.12/m/plot/hist.m' to "3000" thereby accepting the slower algorithm.
Octave 2.9.12 is obsolete. The current stable version is 3.0.1. I
strongly encourage you to upgrade. If you still have the problem with
3.0.1, then please report it again.
jwe
More information about the Bug-octave
mailing list