Skip to content

Commit 8283542

Browse files
isscalar(lshift) instead of lenght(lshift)==1: just for performance reasons.
1 parent 920ac86 commit 8283542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolbox/regression/LTSts.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@
13401340
if coder.target('MATLAB')
13411341
% if lshift=-1, then tentative level shifts are considered for positions
13421342
% p+1, p+2, ..., T-p-1
1343-
if length(lshift)==1 && lshift==-1
1343+
if isscalar(lshift) && lshift==-1
13441344
% lshift=(p+1):(T-p);
13451345
lshift=min([(p+1),5]):max([(T-p),T-4]);
13461346
end

0 commit comments

Comments
 (0)