Average of a each vertical section of a stepped sawtooth wave
Mostra commenti meno recenti
Hello everyone. I need a help to find the average of each vertical steps in a stepped sawtooth wave. For clarity, I have attached the figure of sawtooth wave. Just to reiterate how can I find the average of each small vertical steps in the attached stepped sawtooth wave? Thank you for the help in advance.
Risposta accettata
Più risposte (1)
Greg Dionne
il 25 Mar 2021
1 voto
If you have the Signal Processing Toolbox, FINDCHANGEPTS is worth a look (it will give you the indices of each step of which you can take the average later -- see https://www.mathworks.com/matlabcentral/answers/313651-additional-findchangepts-function-output?s_tid=srchtitle for an example on how to extract each mean).
2 Commenti
Raj
il 25 Mar 2021
Greg Dionne
il 25 Mar 2021
The example in "help findchangepts" should hopefully get you started.
If you post your data though, maybe another volunteer can come up with something even better!
Categorie
Scopri di più su Get Started with Curve Fitting Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
