If mtest is called with one input then it must return two arguments (with detailed information about unitary tests).
parent
b4a8155f5b
commit
c83b047aa0
|
@ -24,7 +24,10 @@ function [check, info] = mtest(fname, fpath)
|
|||
check = 1;
|
||||
|
||||
% Open the matlab file.
|
||||
if isempty(fpath)
|
||||
if nargin<2 || isempty(fpath)
|
||||
if nargout<2
|
||||
error('mtest:: Wrong calling sequence!')
|
||||
end
|
||||
% The full path to the matlab routine (with extension) is given.
|
||||
fid = fopen(fname,'r');
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue