Error bars plotting between two column values from excel sheet in MATLAB.

Hi, I have the following code:
dataset = xlsread('AllSource_MicArr1.xlsx','Src_5MICArray_1','A4:T27');
d = dataset(:,7);
ratio_phi = dataset(:,16);
scatter(d,ratio_phi,'*');
grid on
xlabel('distance d b/w mic pairs[cm]');
ylabel('\phi_r_a_t_i_o');
title('Relationship between \phi ratio and distance between Mic Pairs for Array 3');
mu = mean(ratio_phi);
hline = refline([0 mu]);
hline.Color ='r';
Now: My question is I want to plot error bars in scatter plot such that for each point i get an error bar . As i have already calculated in the code the mean value. So I want to know the error with respect to my mean value. Can anybody help me in the code that how it can be achieved ??. Thanks

1 件のコメント

madhan ravi
madhan ravi 2018 年 10 月 9 日
編集済み: madhan ravi 2018 年 10 月 9 日
Upload your excel file.

サインインしてコメントする。

回答 (1 件)

Ahmad Bilal
Ahmad Bilal 2018 年 10 月 9 日

0 投票

I am only considering 1st sheet of this file.Thank you

カテゴリ

ヘルプ センター および File ExchangeErrorbars についてさらに検索

タグ

質問済み:

2018 年 10 月 9 日

コメント済み:

2018 年 10 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by