Plotting a table with different values ?

조회 수: 7 (최근 30일)
Haseeb Mufti
Haseeb Mufti 2016년 2월 2일
답변: Star Strider 2016년 2월 2일
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 ??

답변 (1개)

Star Strider
Star Strider 2016년 2월 2일
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.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by