[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to hist for changes in bar
From: |
John W. Eaton |
Subject: |
Patch to hist for changes in bar |
Date: |
Wed, 25 Apr 2007 15:38:07 -0400 |
On 25-Apr-2007, David Bateman wrote:
| As bar can now return the figure handle, hist should be slightly
| changes. See the attached patch
|
| D.
| Index: scripts/plot/hist.m
| ===================================================================
| RCS file: /usr/local/cvsroot/octave/scripts/plot/hist.m,v
| retrieving revision 1.32
| diff -u -r1.32 hist.m
| --- scripts/plot/hist.m 10 Oct 2006 16:10:28 -0000 1.32
| +++ scripts/plot/hist.m 25 Apr 2007 19:00:47 -0000
| @@ -118,7 +118,7 @@
| freq = freq / rows (y) * norm;
| endif
|
| - if (nargout > 0)
| + if (nargout > 1)
| if (arg_is_vector)
| nn = freq';
| xx = x';
| @@ -127,7 +127,7 @@
| xx = x;
| endif
| else
| - bar (x, freq);
| + nn = bar (x, freq, 1.0);
| endif
|
| endfunction
What is the extra 1.0 argument to bar for? It causes an error for me.
Matlab's hist doesn't return anything if nargout == 0.
jwe
- Patch to hist for changes in bar, David Bateman, 2007/04/25
- Patch to hist for changes in bar,
John W. Eaton <=
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/25
- Re: Patch to hist for changes in bar, John W. Eaton, 2007/04/25
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/25
- Re: Patch to hist for changes in bar, John W. Eaton, 2007/04/26
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/26
- Re: Patch to hist for changes in bar, John W. Eaton, 2007/04/26
- Re: Patch to hist for changes in bar, David Bateman, 2007/04/26