marianux / ecg-kit

A Matlab toolbox for cardiovascular signal processing
GNU General Public License v2.0
258 stars 85 forks source link

Undefined function 'fieldnames' for input arguments of type 'double'. #12

Open AndreaCogliati opened 7 years ago

AndreaCogliati commented 7 years ago

I tried to install ecg-kit, but I get the following error when running the examples script:

##########################################
# Could not execute "gqrs" QRS detector. #
##########################################

Undefined function 'fieldnames' for input arguments of type 'double'.

Error in getAnnNames (line 32)
    for fname = rowvec(fieldnames(aux_struct))

Error in calculateSeriesQuality (line 40)
    [AnnNames, all_annotations] = getAnnNames(payload_out);

Error in ECGtask_QRS_detection/Process (line 559)
            payload_out = calculateSeriesQuality(payload_out, ECG_header, [1 ECG_header.nsamp] + ECG_start_offset - 1 );

Error in ECGwrapper/Run (line 682)
                            payload = obj.ECGtaskHandle.Process(ECG, this_iter_ECG_start_idx, this_iter_ECG_relative_start_end_idx, this_header, this_ann, [this_iter_QRS_start_idx this_iter_QRS_end_idx] );

Error in examples (line 144)
            ECG_w.Run;

I'm running Matlab R2016b on macOS Sierra. Any suggestions?

marianux commented 7 years ago

Dear Andrea, please post this error messages in the forum in order to get help, or find a solution. Please include the installation command window output, and all the commands you are issuing and their output, in order to reproduce your issue.

Best, M.

2017-07-06 14:50 GMT-03:00 AndreaCogliati notifications@github.com:

I tried to install ecg-kit, but I get the following error when running the examples script:

##########################################

Could not execute "gqrs" QRS detector.

##########################################

Undefined function 'fieldnames' for input arguments of type 'double'.

Error in getAnnNames (line 32) for fname = rowvec(fieldnames(aux_struct))

Error in calculateSeriesQuality (line 40) [AnnNames, all_annotations] = getAnnNames(payload_out);

Error in ECGtask_QRS_detection/Process (line 559) payload_out = calculateSeriesQuality(payload_out, ECG_header, [1 ECG_header.nsamp] + ECG_start_offset - 1 );

Error in ECGwrapper/Run (line 682) payload = obj.ECGtaskHandle.Process(ECG, this_iter_ECG_start_idx, this_iter_ECG_relative_start_end_idx, this_header, this_ann, [this_iter_QRS_start_idx this_iter_QRS_end_idx] );

Error in examples (line 144) ECG_w.Run;

I'm running Matlab R2016b on macOS Sierra. Any suggestions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marianux/ecg-kit/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AEMWNOndcobpBPM4rehsVXozYniiGoNVks5sLR5qgaJpZM4OP-KP .