We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0037bea commit 94f87e8Copy full SHA for 94f87e8
matlab/joint.m
@@ -9,11 +9,14 @@
9
%if the joint variable is only compared with variables using the same samples,
10
%then arity information is not required
11
12
-if (~isa(X,'double') || ~isa(arities,'double'))
13
- error('Error, inputs must be double vectors or matrices')
14
-end
15
if (nargin == 2)
+ if (~isa(X,'double') || ~isa(arities,'double'))
+ error('Error, inputs must be double vectors or matrices')
+ end
16
[output] = MIToolboxMex(3,X,arities);
17
else
18
+ if (~isa(X,'double'))
19
+ error('Error, input must be a double vector or matrix')
20
21
[output] = MIToolboxMex(3,X);
22
end
0 commit comments