フィルターのクリア

plotting standard deviation using normfit

3 ビュー (過去 30 日間)
Mayank Lakhani
Mayank Lakhani 2015 年 8 月 2 日
コメント済み: Star Strider 2015 年 8 月 2 日
I have a matrix amp which is having dimension of [50000*100]. In which number of rows represents number of measurements. Using "normfit" fucntion i am getting standard deviation for different measurements like below.
[sigma, standard_deviation] = normfit(amp(1:10, 50));
[sigma, standard_deviation] = normfit(amp(1:100, 50));
[sigma, standard_deviation] = normfit(amp(1:1000, 50));
[sigma, standard_deviation] = normfit(amp(1:5000, 50));
[sigma, standard_deviation] = normfit(amp(1:10000, 50));
[sigma, standard_deviation] = normfit(amp(1:20000, 50));
how to catch, standard_deviation in a matrix and plot number of measurments vs standard deviation.

採用された回答

Star Strider
Star Strider 2015 年 8 月 2 日
Using normfit to calcualte the standard deviation is taking the long way round, since you’re not asking for the other outputs it can give you.
Use this instead:
len = [10, 100, 1000, 5000, 10000, 20000];
for k1 = 1:length(len)
standard_deviation(k1) = std(amp(1:len(k1), 50));
end
figure(1)
plot(len, standard_deviation)
grid
  2 件のコメント
Mayank Lakhani
Mayank Lakhani 2015 年 8 月 2 日
Thanks Star Strider. This is what i am looking for :D
Star Strider
Star Strider 2015 年 8 月 2 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeView and Analyze Simulation Results についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by