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 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