フィルターのクリア

Display range of points(as an "i letter") in plot command

1 回表示 (過去 30 日間)
Samuel
Samuel 2011 年 11 月 12 日
Hello all,
I have 4 sets of data that has 5 points per data set. If i want to graph this data set by showing a line on the largest and smallest value and a dot on the average value(a capital i shape) for eery set so the range of the values as well as the average can be seen in one plot, how can i dothis?
Thanks for your help!

採用された回答

Walter Roberson
Walter Roberson 2011 年 11 月 12 日
Perhaps the stats toolbox boxplot would be what you need.
  1 件のコメント
Samuel
Samuel 2011 年 11 月 12 日
Exactly what i needed. Thanks!

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

その他の回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2011 年 11 月 12 日
Unfortunately, there is no marker in the shape of letter "I". Is the following close to what you want?
d=rand(4,5);
figure(1);hold on;
plot(max(d),'r:')
plot(min(d),'g--')
plot(mean(d),'b*')
Or use the errorbar() in a twisted way. Just specify an error matrix that is fit for your data but shows a proper size "I" shape.
d=rand(4,5);
figure(1);hold on;
plot(max(d),'r:')
plot(min(d),'g--')
E=0.05*ones(size(d,2),1);
errorbar(mean(d),E);

カテゴリ

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