setTime.m 211 Bytes
Newer Older
Stéphane Adjemian's avatar
Stéphane Adjemian committed
1
function sp = setTime(sp,i,date)
2
3
4
5
6
7
8
9
10
    if nargin==3
        sp.time(i,:) = date;
    elseif nargin==2
        if isa(i,'dynTime')
            sp.time=i.time;
        else
            sp.time=i;
        end
    end