Path: news.mathworks.com!not-for-mail
From: "Sean " <sean.dewolski@nospamplease.umit.maine.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to get a mean of random images
Date: Mon, 25 Oct 2010 14:02:03 +0000 (UTC)
Organization: University of Maine
Lines: 11
Message-ID: <ia42kr$l4m$1@fred.mathworks.com>
References: <ia41ue$4qe$1@fred.mathworks.com>
Reply-To: "Sean " <sean.dewolski@nospamplease.umit.maine.edu>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1288015323 21654 172.30.248.35 (25 Oct 2010 14:02:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 25 Oct 2010 14:02:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2256903
Xref: news.mathworks.com comp.soft-sys.matlab:681107

"Steve Smith" <anicho16@caledonian.ac.uk> wrote in message <ia41ue$4qe$1@fred.mathworks.com>...
> Hi all,
> 
> I'm new to matlab and was wondering how to get the mean of ten random images,i've created the images like this: - 
> images =rand(10,10,10);
> but when i try to get the mean it doesnt work, i'm not sure of the way to go about this
> 
> thanks for any help

For all of them at once:
mean(images(:))