How to set up a value limit to measure a waveform
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I got one (sin) waveform which will attenuate and floating. And i want to know, for example, when will the peak to peak(or the whole waveform) magnitude is smaller than 100(or a certain value)?
0 commentaires
Réponses (2)
dpb
le 30 Juil 2014
a)
find((max(w)-min(w))<Limit,1)
b)
find(abs(w)<Limit,1)
w is the waveform, Limit is your setpoint/comparison value.
2 commentaires
dpb
le 31 Juil 2014
a) will only give a blank result if the pk-pk difference is never less than the Limit value set. Every signal has a max() and a min() and the difference is, by definition, the pk-pk range over the duration.
Image Analyst
le 31 Juil 2014
Will you need to first find the "envelope" of the decaying sine wave? Please attach a picture of your signal, and the actual signal in an m-file if you can.
7 commentaires
Image Analyst
le 1 Août 2014
You need to define the window width of the region. Would it be the entire signal, or just some portion of the signal. When deciding whether a value at x=12 is in a range of 10 in y, do you want to look from 0 to 20? Or just within the local x=10 to 14 range?
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
