Skip to content

Commit

Permalink
Patching arguments parsing in joint.m
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Mar 28, 2017
1 parent 0037bea commit 94f87e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions matlab/joint.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
%if the joint variable is only compared with variables using the same samples,
%then arity information is not required

if (~isa(X,'double') || ~isa(arities,'double'))
error('Error, inputs must be double vectors or matrices')
end
if (nargin == 2)
if (~isa(X,'double') || ~isa(arities,'double'))
error('Error, inputs must be double vectors or matrices')
end
[output] = MIToolboxMex(3,X,arities);
else
if (~isa(X,'double'))
error('Error, input must be a double vector or matrix')
end
[output] = MIToolboxMex(3,X);
end

0 comments on commit 94f87e8

Please sign in to comment.