how can i plot means of a data set?

4 views (last 30 days)
i have an array of variable y, 32 x 247 in dimension and which i wish to work out the column means for and then plot in order to represent a mean graph of the 32 individual signals.
i can access the means to each column in 'data statistics' of the plot function, but cannot then make the means be represented in graphical form on the same axes.
thanks
thanks for the answer
Data=rand(32,247); % Example data_mean=mean(Data,2); plot(data_mean);
- but the output is only 32 mean values, of each row, rather than 247 mean values, of each column. how can i obtain the means of the columns rather than the rows?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 12 Sep 2012
Edited: Azzi Abdelmalek on 12 Sep 2012
Data=rand(32,247); % Example
data_mean=mean(Data,2);
plot(data_mean);

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!