Display both the figure and save the output in the function 'findchangepts'
조회 수: 1 (최근 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?
댓글 수: 0
채택된 답변
Alamanda Ponappa 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 Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!