How can I plot the mean and standar deviation of two variables?
조회 수: 5 (최근 30일)
이전 댓글 표시
I have the mean of two variables and the standard deviation of the same variables, how can I plot error bars of this data so it looks something like this? I have used errorbar function but it doesn't work. Than you.
댓글 수: 1
Jos (10584)
2018년 3월 9일
" it doesn't work" is rather meaningless here; you wouldn't be asking this question otherwise ;)
Better tell us which error you got, or why the result was different from what you expected, etc.
채택된 답변
Von Duesenberg
2018년 3월 9일
You could start like this:
meanVal = [.6, .6];
sdVal = [.4, 0.4];
errorbar(meanVal, sdVal, 'o');
set(gca, 'XLim', [0, 3], 'YLim', [0, 1.2])
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Errorbars에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!