zelanolab / breathmetrics

Algorithmic Feature Extraction of Respiratory Data
82 stars 10 forks source link

Not able to run the demoGUI code #7

Open Foodie06 opened 2 years ago

Foodie06 commented 2 years ago

This is my first time using breathmetrics. I installed it and added it to my Matlab. Now when I am trying to run the demo gui code, I am getting error. It is as follows:

Unrecognized function or variable 'fftSmooth'.

Error in breathmetrics (line 138) fftSmooth(resp, srateCorrectedSmoothedWindow)';

Error in demo (line 94) bmObj = breathmetrics(respiratoryRecording, srate, dataType);

What mistake am I doing?

torbenator commented 2 years ago

Hey,

Sorry to hear it's not working.

fftSmooth is a function in the breathMetrics_functions folder. My guess is that you added breathmetrics to your path but didn't add the subfolders.

try typing pathtool, then click "Add with subfolders", and click the breathmetrics folder. Hopefully that fixes the problem.

Thanks!

Foodie06 commented 2 years ago

Hey, Thank you so much for taking the time to help me out. I am able to run the code now.

But the problem now is that when the sample data is run, The output is just coming as values, I am not able to get the graphical output. And my GUI window isn't opening. It's the same numerical output that I am getting for the demo.

torbenator commented 2 years ago

Hey,

I've been thinking about this issue but I really don't know how to solve it with the information that you've given me. I'm assuming you can get other figures to appear? Is there no error message? Unfortunately, my guess that this is some deeper issue with Matlab that I haven't encountered before.

Sorry that this probably isn't very helpful but I just wanted to let you know.

Best of luck working this out!

Foodie06 commented 2 years ago

Hello Sir, I am not able to follow up. But let me see what I can do to solve it.

Thank You.

On Wed, Nov 30, 2022 at 1:52 AM Torben Noto @.***> wrote:

Hey,

I've been thinking about this issue but I really don't know how to solve it with the information that you've given me. I'm assuming you can get other figures to appear? Is there no error message? Unfortunately, my guess that this is some deeper issue with Matlab that I haven't encountered before.

Sorry that this probably isn't very helpful but I just wanted to let you know.

Best of luck working this out!

— Reply to this email directly, view it on GitHub https://github.com/zelanolab/breathmetrics/issues/7#issuecomment-1331250219, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBB6JZUL5ZLCV4QHIDKVZDWKZQZNANCNFSM6AAAAAARH2LWDE . You are receiving this because you authored the thread.Message ID: @.***>

Berlinbenilo commented 1 year ago

I faced the same issue, I solved by increase the data elements for morethan 16000. In the sample data which given contains morethan 60000 data samples. Reason behind here is, the breath metrics code expecting data more than 60 secs with dominant samples.