From: Edric M Ellis <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: histc for gpu
Date: Fri, 07 Mar 2014 16:40:19 +0000
Organization: The Mathworks, Ltd.
Lines: 17
Message-ID: <>
References: <lc1a97$6tt$>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: 1394210419 2800 (7 Mar 2014 16:40:19 GMT)
NNTP-Posting-Date: Fri, 7 Mar 2014 16:40:19 +0000 (UTC)
X-Face: $Ahg}Iylezql"r1WV1Me5&)ng"a4v%D>==KMs-elCfj"o}$bh-VOt7lVXgLWsC?9mZ`mINT
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock: sha1:4nU7m/ixoU3v6zbT0dsA+MxqEp4=
Xref: comp.soft-sys.matlab:810442

"Christian " <> writes:

> I'm using Matlab 2013b, so not sure why it doesn't work. I just discovered
> another part of my algorithm that could benefit from histc. So having a gpu
> version of it would be great. 

Hi Christian,

It's crucial that your 'bindata' function is a nested function inside
your main function. You can only index into "up-level" variables - this
is the only way that you can access the whole value of an array from
within your arrayfun function. If you look back at my original posting,
that's what I did.