error message from hist
Zwerg Alberich
alberich at gmx.at
Mon May 12 01:32:03 CDT 2008
Hello,
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.
And voilà everything o.k. but a bit slower...
Bye
-alberich-
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
More information about the Bug-octave
mailing list