how to calculate variance of a signal after it reaches a steady state value...
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Vidhya Dharshini
il 27 Set 2013
Commentato: Jessica
il 18 Mar 2015
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 Commenti
Image Analyst
il 29 Set 2013
firstIndex = find(speed >= 20000, 1, 'first');
theVariance = var(speed(firstIndex : end));
Risposta accettata
Image Analyst
il 27 Set 2013
Modificato: Image Analyst
il 27 Set 2013
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Signal Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!