Display both the figure and save the output in the function 'findchangepts'
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Butterflyfish
le 19 Oct 2021
Commenté : Butterflyfish
le 3 Nov 2021
I am using the function findchangepts to find abrupt changes in a spectrogram:
[s,f,t,pxx] = spectrogram(data, 128, 120, 128, fs)
findchangepts(pow2db(pxx),'MaxNumChanges', 2)
It outputs a figure, which I would like to keep as it is. But I would also like to save the output 'ipt', like with:
ipt = findchangepts(pow2db(pxx),'MaxNumChanges', 2);
How can I both have the figure and the ipt without running the function twice?
0 commentaires
Réponse acceptée
Drishan Poovaya
le 3 Nov 2021
Currently findchangepts does not support this feature. I have brought this issue to the notice of the concerned people and it might be considered for a future release.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Signal Generation and Preprocessing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!