Thread Subject: Plot a histogram taking values from multiple matrices

Subject: Plot a histogram taking values from multiple matrices

From: Subrat Swain

Date: 26 Nov, 2008 05:04:04

Message: 1 of 1

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).
A = 1 2 3 B = 12 13 14 C = 46 23 16
      4 5 6 16 18 21 12 31 33
      7 8 9 23 25 28 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), B(1,1), C(1,1) ) 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.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com