How to remove the connecting live between two standard deviations in a bar plot

3 ビュー (過去 30 日間)
Hi,
I'm trying to plot some data in an errorbar, but when I try to plat this, my two standard deviation lines are interconnected, and I can't find how to remove this line.
This is my code:
Mean_RMS_COMFB_tr3 = nanmean(RMS_out_dataFit_tr3);
Mean_RMS_LMTFB_tr3 = nanmean(RMS_out_dataFit_LMT_tr3);
Std_RMS_COMFB_tr3 = nanstd(RMS_out_dataFit_tr3,[],2);
Std_RMS_LMTFB_tr3 = nanstd(RMS_out_dataFit_LMT_tr3,[],2);
figure();
bar([Mean_RMS_COMFB_tr3;Mean_RMS_LMTFB_tr3]'); hold on;
errorbar([Mean_RMS_COMFB_tr3;Mean_RMS_LMTFB_tr3], [Std_RMS_COMFB_tr3 Std_RMS_LMTFB_tr3], 'r'); hold on;
% ylim([0 0.009]);
xlabel('Trials');
ylabel('RMS value');
legend('mean COM & LMT FB','Std COM & LMT FB');
title('Mean RMS values for COM & LMT feedback based on 3 trials');
The figure is attached.

採用された回答

José-Luis
José-Luis 2016 年 12 月 19 日
編集済み: José-Luis 2016 年 12 月 19 日
One option:
errorbar([Mean_RMS_COMFB_tr3;Mean_RMS_LMTFB_tr3], [Std_RMS_COMFB_tr3 Std_RMS_LMTFB_tr3], 'r.');
Please read the documentation.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeErrorbars についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by