cliffordlab / PhysioNet-Cardiovascular-Signal-Toolbox

PhysioNet Cardiovascular Signal Toolbox
BSD 3-Clause "New" or "Revised" License
119 stars 57 forks source link

Undefined function or variable 'ExportHRVparams'? #8

Closed aureliuzlau closed 5 years ago

aureliuzlau commented 5 years ago

Hi,

I am trying to start with PhysioNet-Cardiovascular-Signal-Toolbox with DemoAnnotatedData.m using MATLAB. When I run the script, the following error happens in MATLAB:

Warning: Removed '/Users/albertlau/Documents/MATLAB/PhysioNet-Cardiovascular-Signal-Toolbox-master/Demos/OutputData/ResultsNSR' from the MATLAB path for this MATLAB session. See 'doc path' for more information.

In DemoAnnotatedData (line 39) Old Demo Folder deleted

New OUTPUT folder: "OutputData/ResultsNSR" Undefined function or variable 'ExportHRVparams'.

Error in InitializeHRVparams (line 344) ExportHRVparams(HRVparams);

Error in DemoAnnotatedData (line 45)

May I know what other things I need to tune/modify before I run the demo?

Thanks so much!

Aureliuz

GiuliaDAP commented 5 years ago

As you can see from the output error message:

Undefined function or variable 'ExportHRVparams'.

It means that the function ExportHRVparams.m is not on your Matlab path. Check that all Tools sub-directories are in Matlab path.

Thia should be done by startup.m

On Sun, 27 Jan 2019 at 22:32, aureliuzlau notifications@github.com wrote:

Hi,

I am trying to start with PhysioNet-Cardiovascular-Signal-Toolbox with DemoAnnotatedData.m using MATLAB. When I run the script, the following error happens in MATLAB:

Warning: Removed '/Users/albertlau/Documents/MATLAB/PhysioNet-Cardiovascular-Signal-Toolbox-master/Demos/OutputData/ResultsNSR' from the MATLAB path for this MATLAB session. See 'doc path' for more information.

In DemoAnnotatedData (line 39) Old Demo Folder deleted

New OUTPUT folder: "OutputData/ResultsNSR" Undefined function or variable 'ExportHRVparams'.

Error in InitializeHRVparams (line 344) ExportHRVparams(HRVparams);

Error in DemoAnnotatedData (line 45)

May I know what other things I need to tune/modify before I run the demo?

Thanks so much!

Aureliuz

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cliffordlab/PhysioNet-Cardiovascular-Signal-Toolbox/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ANeJrGxhghkmrBpqEadQOn3tm1VX4twhks5vHm9UgaJpZM4aVJH2 .

aureliuzlau commented 5 years ago

As you can see from the output error message: Undefined function or variable 'ExportHRVparams'. It means that the function ExportHRVparams.m is not on your Matlab path. Check that all Tools sub-directories are in Matlab path. Thia should be done by startup.m On Sun, 27 Jan 2019 at 22:32, aureliuzlau @.***> wrote: Hi, I am trying to start with PhysioNet-Cardiovascular-Signal-Toolbox with DemoAnnotatedData.m using MATLAB. When I run the script, the following error happens in MATLAB: Warning: Removed '/Users/albertlau/Documents/MATLAB/PhysioNet-Cardiovascular-Signal-Toolbox-master/Demos/OutputData/ResultsNSR' from the MATLAB path for this MATLAB session. See 'doc path' for more information. In DemoAnnotatedData (line 39) Old Demo Folder deleted New OUTPUT folder: "OutputData/ResultsNSR" Undefined function or variable 'ExportHRVparams'. Error in InitializeHRVparams (line 344) ExportHRVparams(HRVparams); Error in DemoAnnotatedData (line 45) May I know what other things I need to tune/modify before I run the demo? Thanks so much! Aureliuz — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#8>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANeJrGxhghkmrBpqEadQOn3tm1VX4twhks5vHm9UgaJpZM4aVJH2 .

Thanks so much for the reply. Sorry for a bit late reply. When I try to add path for the files and run the code. It displays:

Error using run (line 68) RUN cannot execute the file '../startup.m'. RUN requires a valid MATLAB script

Error in DemoAnnotatedData (line 34) run(['..' filesep 'startup.m'])

I noticed that it should due to pathscript problem. I have tried many ways to add the path of startup.m, but the same error message displayed. May I ask about the correct procedures in running the demo after downloading the PhysioNet-Cardiovascular-Signal-Toolbox.zip Thanks so much.

Aureliuz