For example: Following is my piece of code:
function [Tcont, T] = timeArrayVelo(Tarray,dt)
Tcont = cell(5,1);
T = cell(5,1);
% arrays for velocity time array
Tcont{1} = Tarray(1):dt:Tarray(2)-dt;
Tcont{2} = Tarray(2):dt:Tarray(3)-dt;
Tcont{3} = Tarray(3):dt:Tarray(4)-dt;
Tcont{4} = Tarray(4):dt:Tarray(5)-dt;
Tcont{5} = Tarray(5):dt:Tarray(6);
% arrays for calculation
T{1} = 0:dt:(Tarray(2)-Tarray(1))-dt;
T{2} = 0:dt:(Tarray(3)-Tarray(2))-dt;
T{3} = 0:dt:(Tarray(4)-Tarray(3))-dt;
T{4} = 0:dt:(Tarray(5)-Tarray(4))-dt;
T{5} = 0:dt:(Tarray(6)-Tarray(5));
end
And I am getting following error:
Can anyone give any solution?