Skip to content

Commit

Permalink
Merge pull request #3755 from dpiskas/development
Browse files Browse the repository at this point in the history
matlab wrapper, "elseif" syntax correction
  • Loading branch information
ev-mp authored Apr 18, 2019
2 parents d894c53 + 372b38a commit bec4d4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wrappers/matlab/spatial_filter.m
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
Expand All @@ -21,4 +21,4 @@

% Functions
end
end
end
4 changes: 2 additions & 2 deletions wrappers/matlab/temporal_filter.m
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
Expand All @@ -20,4 +20,4 @@

% Functions
end
end
end

0 comments on commit bec4d4a

Please sign in to comment.