RRest
RRest copied to clipboard
Error with FMe method
Dataset: bidmc (1 subject), matlab R2019a, with FMe method enabled (in up.al.sub_components.ekg_feat) and any of , 'qrS' , 'rsS', 'Rang' in up.al.options.FMe I'm getting the following error:
Unable to perform assignment because the left and right sides have a different number of elements.
Error in FMe>identify_max_upslopes (line 504)
max_upslopes.v(s) = sum((rel_data.x - x_bar).*(rel_data.y - y_bar))/sum((rel_data.x - x_bar).^2)
Error in FMe>calc_qrS (line 303)
max_upslopes = identify_max_upslopes(peaks, qrs_onsets, sig_data, up);
Error in FMe (line 149)
feat_data = feval(['calc_' up.al.options.FMe{current_opt_no}], peaks, onsets, sig_data.fs, sig_data, up);
Error in extract_resp_sig (line 27)
feval(rel_sub_comps{sub_comp_no}, up.al.options.extract_resp_sig{option_no}, up);
Error in RRest (line 63)
feval(up.al.key_components{key_comp_no}, up);
Error in runRRest (line 17)
RRest('bidmc_short')
I made it print sum((rel_data.x - x_bar).*(rel_data.y - y_bar))/sum((rel_data.x - x_bar).^2)
which results in:
1.0e-16 *
-0.5551 0 0.5551
Maybe it should be *
instead of .*
operation sum((rel_data.x - x_bar)*(rel_data.y - y_bar))/sum((rel_data.x - x_bar).^2)
? as that way it will output an scalar