Commit 691c3b79 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

dynDates: bug fix

parent 4cab2724
......@@ -74,7 +74,7 @@ switch S(1).type
error(['dynDates::subsref: the index have to be a positive integer less than or equal to ' int2str(A.ndat) '!'])
end
else
if isvector(S(1).subs{1}) && all(isint(S(1).subs{1})) && all(S(1).subs{1}>0) && all(S(1).subs{1}<A.ndat)
if isvector(S(1).subs{1}) && all(isint(S(1).subs{1})) && all(S(1).subs{1}>0) && all(S(1).subs{1}<=A.ndat)
B = dynDates();
B.freq = A.freq;
B.time = A.time(S(1).subs{1},:);
......
Supports Markdown
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