Plotting a table with different values ?

1 view (last 30 days)
Haseeb Mufti
Haseeb Mufti on 2 Feb 2016
Answered: Star Strider on 2 Feb 2016
Hello !
I have a matrix of 500x40 , where x axis is Eb/No values from 1 to 40 and y axis is BER values for 500 iterations for each Eb/No value. My code stores the whole matrix, then takes the average of each column and gives a final single value with respect to x axis. I can already plot the average values but I want to plot all the 500 values for the single point,then the next 500 values for the next point and so on and finally plot the average value plot on top of it. Any suggestions how can I do it ??

Answers (1)

Star Strider
Star Strider on 2 Feb 2016
This is how I would do it:
M = bsxfun(@plus, randn(500, 40)*0.1, exp(-0.1*[0:39])); % Create Data Matrix: (500x40)
figure(1)
plot([1:40], M, '.k')
I created a data matrix that may not match your actual data.
Run this code to see how the plot looks.

Tags

Community Treasure Hunt

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

Start Hunting!