Display both the figure and save the output in the function 'findchangepts'

2 次查看(过去 30 天)
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?

采纳的回答

Drishan Poovaya
Drishan Poovaya 2021-11-3
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Signal Generation and Preprocessing 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by