ikarosilva / wfdb-app-toolbox

The WFDB Toolbox for MATLAB/Octave is a collection of functions for reading, writing, and processing physiologic signals in the formats used by PhysioNet (see README for details).
http://physionet.org/physiotools/matlab/wfdb-app-matlab/
GNU General Public License v3.0
93 stars 46 forks source link

How to Restore wfdb without reinstallation? #121

Closed sami10007 closed 8 years ago

sami10007 commented 8 years ago

I ruined my wfdb os x 10.11.4 with 0-9-10 by running wrong initialisation. I can reproduce bug #106 etc by the following

WFDB_PATH=['/Users/masi/Databases']; 
ECG=1; NBP=100; IBP=100; Resp=1; WFDBCAL=[ECG, NBP, IBP, Resp]; % TODO ask http://www.physionet.org/physiotools/wag/wfdbca-5.htm
debugLevel=5; networkWaitTime=1000; [isloaded,config]=wfdbloadlib(debugLevel, networkWaitTime); 
N0=1; rawUnits=1; % Physical units: base and gain already applied 
[sig, Fs, tm1]=rdsamp(strcat('mitdb/',num2str(patient)),channel,N0,rawUnits); 

I restarted Matlab and the OSX but I cannot get wfdb back to its default. Running the above command ruins the system in such a way that not even restart restores the settings. It would be great to understand why doing such commands make changes to the system itself. I think this should not be the case.


How can you restore WFDB system?

ikarosilva commented 8 years ago

These commands should not change your configuration (you are just defining variables in your local workspace). Looks like your configuration was corrupted prior to this.