Plotting a table with different values ?
조회 수: 7 (최근 30일)
이전 댓글 표시
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 ??
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!