From c2d22e9a9b59f88f58faa82b902850aa017228c6 Mon Sep 17 00:00:00 2001 From: Dimitrios Piskas Date: Sun, 14 Apr 2019 18:20:11 +0200 Subject: [PATCH 1/2] corrected elseif syntax Right now an "end" is missing, which causes an error by making line 17 conditional on the second "if" --- wrappers/matlab/temporal_filter.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrappers/matlab/temporal_filter.m b/wrappers/matlab/temporal_filter.m index ae7eff3241..b2ac90ac8b 100644 --- a/wrappers/matlab/temporal_filter.m +++ b/wrappers/matlab/temporal_filter.m @@ -5,7 +5,7 @@ function this = temporal_filter(smooth_alpha, smooth_delta, persistence_control) if (nargin == 0) out = realsense.librealsense_mex('rs2::temporal_filter', 'new'); - else if (nargin == 3) + elseif (nargin == 3) validateattributes(smooth_alpha, {'numeric'}, {'scalar', 'real'}); validateattributes(smooth_delta, {'numeric'}, {'scalar', 'real'}); validateattributes(persistence_control, {'numeric'}, {'scalar', 'real', 'integer'}); @@ -20,4 +20,4 @@ % Functions end -end \ No newline at end of file +end From 372b38a86b185ba3a9b05f461c23df943d05676d Mon Sep 17 00:00:00 2001 From: Dimitrios Piskas Date: Sun, 14 Apr 2019 18:22:41 +0200 Subject: [PATCH 2/2] corrected "elseif" syntax Right now an "end" is missing, which causes an error by making line 17 conditional on the second "if" --- wrappers/matlab/spatial_filter.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrappers/matlab/spatial_filter.m b/wrappers/matlab/spatial_filter.m index 0eb69859a9..b1168189ba 100644 --- a/wrappers/matlab/spatial_filter.m +++ b/wrappers/matlab/spatial_filter.m @@ -5,7 +5,7 @@ function this = spatial_filter(smooth_alpha, smooth_delta, magnitude, hole_fill) if (nargin == 0) out = realsense.librealsense_mex('rs2::spatial_filter', 'new'); - else if (nargin == 4) + elseif (nargin == 4) validateattributes(smooth_alpha, {'numeric'}, {'scalar', 'real'}); validateattributes(smooth_delta, {'numeric'}, {'scalar', 'real'}); validateattributes(magnitude, {'numeric'}, {'scalar', 'real'}); @@ -21,4 +21,4 @@ % Functions end -end \ No newline at end of file +end