Path: news.mathworks.com!not-for-mail
From: "Subrat Swain" <swain.subrat01@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Plotting a histogram taking particular cell values from multiple matrices
Date: Wed, 26 Nov 2008 18:43:02 +0000 (UTC)
Organization: Wayne State University
Lines: 12
Message-ID: <ggk5bm$3tl$1@fred.mathworks.com>
Reply-To: "Subrat Swain" <swain.subrat01@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227724982 4021 172.30.248.37 (26 Nov 2008 18:43:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 26 Nov 2008 18:43:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1546283
Xref: news.mathworks.com comp.soft-sys.matlab:503373


Hi all,
I would like to code a program in MATLAB which will plot a histogram taking values from multiple matrices (a particular cell value from all matrices). For example I have 3 matrices (A,B and C). Each matrix is of order 3*3.
A = [1 2 3;4 5 6;7 8 9]
B = [12 13 14;16 18 21;23 25 28]
C = [46 23 16;12 31 33;32 34 54]

Now I want to code a program which will take the corresponding elements from these 3 matrices (for example A(1,1) - 1, B(1,1) - 12, C(1,1) - 46 ) and plot a histogram. Is it possible to put a loop which will internally take the corresponding elements from the matrices and plot a histogram. This is just an example while I have a large number of data sets which I will be using.

Appreciate for the help.

Thanks and Regards,
Subrat Kumar Swain.