フィルターのクリア

problem with error bar

1 回表示 (過去 30 日間)
Villanova
Villanova 2011 年 10 月 1 日
Hi. I want to use errorbar(x,y,std) to get the error bar. I was wondering if x and y are vectors with 10 data point each. how do I write the code for std to have the same matching (10X1) dimension. Thanks

採用された回答

Wayne King
Wayne King 2011 年 10 月 1 日
e = std(y)*ones(size(y));
  1 件のコメント
Wayne King
Wayne King 2011 年 10 月 1 日
As in:
x = 1:10;
y = randn(10,1);
e = std(y)*ones(10,1);
errorbar(x,y,e)

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by