If mtest is called with one input then it must return two arguments (with detailed information about unitary tests).

time-shift
Stéphane Adjemian (Charybdis) 2013-07-04 11:54:27 +02:00
parent b4a8155f5b
commit c83b047aa0
1 changed files with 4 additions and 1 deletions

View File

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