Updated 10 Jul 2020
Please see GitHub Readme.
Daniel R. Herber (2020). Fast Reducing of Sample Points for 1D Linear Interpolation (https://github.com/danielrherber/reduce-linear-interp1/releases/tag/v2.0), GitHub. Retrieved .
Volodymyr, thanks for the suggestion toward improving the robustness of this submission.
Please add the following lines to the function reduce_interp_1d_linear:
X = X(:);
Y = Y(:);
This will remove error when size X is [1,N], and size Y is [N,1]
Hi Daniel, thank you for the great tool.
Thanks for the reply ! I actually think I got an error because I tried the script using R2013a :)
Thanks for your comment E. Ch3yn3t. I am not experiencing the error when using R2014a or R2015b but updated the file anyway to match the documentation.
otherwise, works pretty well :)
I get the error:
" Error using optimoptions (line 105)
'disp' is not an option for QUADPROG."
The corresponding option is "Display" I think
See release notes for this release on GitHub: https://github.com/danielrherber/reduce-linear-interp1/releases/tag/v2.0
Changed 'Disp' to 'Display' in the options for the QP to fix a potential error.