Commit 3af62c4a authored by Sébastien Villemot's avatar Sébastien Villemot

Fixed bug in resid.m (order matters in "or" statement, because of...

Fixed bug in resid.m (order matters in "or" statement, because of short-circuit: "ind" is not defined if "istag" is false)
parent 33dee342
......@@ -112,7 +112,7 @@ if nargout == 0
tg = tags(cell2mat(tags(:,1)) == i,2:3); % all tags for equation i
ind = strmatch( tagname, cellstr( tg(:,1) ) );
end
if length(ind) == 0 || ~istag
if ~istag || length(ind) == 0
disp(['Equation number ' int2str(i) ' : ' num2str(tmp)])
else
t1 = tg( ind , 2 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment