How can i mark wheezes(.txt file) on the sound file on GUI

2 ビュー (過去 30 日間)
furkan akhan
furkan akhan 2021 年 3 月 13 日
コメント済み: Rik 2021 年 3 月 16 日
(Sound graph) (Starting-ending wheezes)
I have sound file of 5 patients and I have drawn them as txt in the GUI, but I could not mark the data in the wheeze file in txt. On the left is the sound graph of a person with asthma. On the right is the data of the asthma patient's start and end wheezes as a txt file. The left row in the txt file represents the starting wheezes and the right row represent ending wheezes. My aim here is to mark the wheezes with red and green vertical lines on the sound file on the left. The red vertical line should represent the beginning and the green vertical line should represent end wheezes. For example, 2239 should be marked as red and 3239 green vertical lines on the sound file.
case 'Option 1'
mydata = load("yk130505sk403.txt");
samples = size(mydata,1);
plot(app.UIAxes,1:samples,mydata(:,1),'b'); % I drawn sound file like this but i could not assign wheezes to my sound file.
  1 件のコメント
Rik
Rik 2021 年 3 月 16 日
You could try to find the envelope and determine where the distance between the upper and lower bounds are below a certain threshold.

サインインしてコメントする。

回答 (1 件)

Asvin Kumar
Asvin Kumar 2021 年 3 月 16 日
One way to do this would be using the brush tool. Here's an examples that shows how to select multiple vaues from a plot and then export the data: Save Brushed Data in a Variable. I'm not sure about how one would add the red/green lines as you had mentioned.
On the other hand, this seems like a typical use case for the Audio Labeler app. Have a look at the Audio Labeler Walkthrough page which demonstrates how to use the app. The use case discussed on the page is similar to yours.

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by