フィルターのクリア

how to calculate variance of a signal after it reaches a steady state value...

8 ビュー (過去 30 日間)
Vidhya Dharshini
Vidhya Dharshini 2013 年 9 月 27 日
コメント済み: Jessica 2015 年 3 月 18 日
The signal for which the variance is to be calculated is in the base workspace in timeseries format. i want to calculate the variance only after 0.5 seconds. How to do it?
  3 件のコメント
Vidhya Dharshini
Vidhya Dharshini 2013 年 9 月 29 日
yeah.......i can get you.......you mean steady state refers to the property of not changing with time........for my case i am designing a speed controller for a motor......when i set a reference speed of 20000, the speed starts increasing from 0 to 20000. it oscillates around 20000. and i want to calculate the variance only after it reaches my reference value........ i should have mentioned it as desired value instead of steady state value in the question........thank u.......i have calculated the variance.....
Image Analyst
Image Analyst 2013 年 9 月 29 日
firstIndex = find(speed >= 20000, 1, 'first');
theVariance = var(speed(firstIndex : end));

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

採用された回答

Image Analyst
Image Analyst 2013 年 9 月 27 日
編集済み: Image Analyst 2013 年 9 月 27 日
What element does 0.5 seconds occur at? Let's say it's element 42, so then you do
varSteadyState = var(yourSignal(42:end));
Let's say you have a vector t with the times, and a vector yourSignal with the signal value. You can find the index for which t equals or passes 0.5 seconds like this:
startingElement = find(t>=0.5, 1, 'first');
varSteadyState = var(yourSignal(startingElement :end));
  2 件のコメント
Vidhya Dharshini
Vidhya Dharshini 2013 年 9 月 29 日
Thank u so much sir.........
Jessica
Jessica 2015 年 3 月 18 日
Hi just one question how did you calculate the steady state ?
Thank You

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by