buzsakilab / buzcode

Code for internal lab sharing - polishing has started but is by no means complete
http://www.buzsakilab.com/
GNU General Public License v3.0
119 stars 127 forks source link

Error in SleepScoreMaster.m #411

Open anjaliagarwal8 opened 3 years ago

anjaliagarwal8 commented 3 years ago

I am trying to find sleep scores for various states using lfp data. Whenever I execute SleepScoreMaster.m file I get this error:

Error using PickSWTHChannel (line 178) Cannot find an exact (case-sensitive) match for 'smooth'

The closest match is: Smooth

Error in SleepScoreMaster (line 234) SleepScoreLFP = PickSWTHChannel(basePath,...

How to resolve this error?

Thank you

brendonw1 commented 3 years ago

I’m surprised. smooth.m has been a basic Matlab function for a long time. Do you not have that function in your path? Has it been depricated in recent versions?

On Thu, Jun 3, 2021 at 2:53 AM Anjali Agarwal @.***> wrote:

I am trying to find sleep scores for various states using lfp data. Whenever I execute SleepScoreMaster.m file I get this error:

Error using PickSWTHChannel (line 178) Cannot find an exact (case-sensitive) match for 'smooth'

The closest match is: Smooth

Error in SleepScoreMaster (line 234) SleepScoreLFP = PickSWTHChannel(basePath,...

How to resolve this error?

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA26WTL6XIIYCBAXW3XKNQ3TQ4RGBANCNFSM46AEATCA .

anjaliagarwal8 commented 3 years ago

Oh, looks like I need to have Curve Fitting Toolbox for that function. Thanks!!

brendonw1 commented 3 years ago

OK maybe that's it. I didn't realize it wasn't in the base package. I think we use it mostly just as a moving average (convolution of square wave)

On Thu, Jun 3, 2021 at 7:40 AM Anjali Agarwal @.***> wrote:

Oh, looks like I need to have Curve Fitting Toolbox for that function. Thanks!!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/411#issuecomment-853804228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA26WTNAAL7WQMQO4VQC6Z3TQ5SY7ANCNFSM46AEATCA .

anjaliagarwal8 commented 3 years ago

Yes, I don't think it comes with the base package.