help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Axes handle argument not supported for hist function?


From: kamaraju kusumanchi
Subject: Re: Axes handle argument not supported for hist function?
Date: Thu, 14 Mar 2013 08:20:23 -0400




On Wed, Mar 13, 2013 at 7:50 AM, Arnaud Miege <address@hidden> wrote:
Hello,

It looks like the hist function doesn't support having an axes handle as a first argument, which it does in MATLAB. The following (from the MATLAB doc on hist)

data = "">figure 
s(1) = subplot(2,1,1); 
s(2) = subplot(2,1,2); 
hist(s(1),data,50) 
hist(s(2),data,xcenters)

doesn't plot anything in Octave 3.6.2 and generates the following warning in the console window:

>> hist(s(1),data,50)
warning: hist: bin values not sorted on input
>> hist(s(2),data,xcenters)
warning: hist: bin values not sorted on input

Am I correct and if so, is this a valid enhancement request?


The last sentence gives me errors in matlab.
 
>> hist(s(2),data,xcenters)
??? Undefined function or variable 'xcenters'.

raju

reply via email to

[Prev in Thread] Current Thread [Next in Thread]