Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how many times repeat a number in an array??
Date: Wed, 19 Nov 2008 17:53:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gg1jpt$eja$1@fred.mathworks.com>
References: <gfvq4u$goe$1@fred.mathworks.com> <gg0304$g8i$1@fred.mathworks.com> <gg1cbq$9gl$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227117181 14954 172.30.248.35 (19 Nov 2008 17:53:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 19 Nov 2008 17:53:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:501783


"Maria " <mariaki16@hotmail.com> wrote in message <gg1cbq$9gl$1@fred.mathworks.com>...
> what inputs doi have to put in accumarray and in histc in the histc help i found this:
> 
> N = HISTC(X,EDGES), for vector X, counts the number of values in X
>     that fall between the elements in the EDGES vector (which must contain
>     monotonically non-decreasing values).  N is a LENGTH(EDGES) vector
>     containing these counts. 
> 
> what the eges should be???

  Maria, I will answer your questions this way.  If you make a careful study of what the matlab functions 'histc' and/or 'accumarray' are intended to accomplish, then you will almost automatically realize what kind of inputs they require to solve your particular problem.  This will probably require some experimentation on your part in the use of those functions in order to attain such an understanding.

  This is the way one best learns to use Matlab.  Being given complete solutions without such an understanding is definitely NOT the right way since it leaves one unprepared for other problems.

Roger Stafford