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

wrsamp issue with javaWfdbExec #109

Closed TenanATC closed 7 years ago

TenanATC commented 9 years ago

Hi Ikaro, Thanks for the great toolbox and all of the work you do on it. I'm having issues with wrsamp. Here is a non-reproducable example:

data = Shimmer_ECG_LARA; Fs = 1024; tm = [1:length(Shimmer_ECG_LARA)].'; gain = 1; %need to adjust; format = 24; %this is correct, but maybe adjust?;

wrsamp(tm, data, 'test1', Fs, gain, format)

Which throws the following error: No method 'setArguments' with matching signature found for class 'org.physionet.wfdb.Wfdbexec'.

Error in wrsamp (line 106) javaWfdbExec.setArguments(wfdb_argument);

Windows 7, Matlab 2014b. The install worked correctly and ran the demo without issue. Any idea where the issue may reside?

TenanATC commented 9 years ago

I have been able to replicate this on a second Windows 7 computer running Matlab R2010a.

cx1111 commented 7 years ago

The format is supposed to be a string.

format = '24'

By the way, wrsamp doesn't have the ability to write baseline values. Might be better to use mat2wfdb.