If I use "==" in the 9th line of this code it says: inappropiate use of == operator. If I use "=" I am getting a parse error.
CODE:
for j=3:size(A,2) StartTijd=A(1,2); tijdIndex=1; for i=1:(size(A,1)-1) if (A(i,j)-A(i+1,j))==1 Parkingtime(tijdIndex,j)=A(i+1,2)-tijd;%service time
tijd=(A(i+1,2)); else A(i,j)-A(i+1,j)==-1; StartTijd=A(i+1,2); tijdIndex=i+1; if Parkingtime(i+1,j)<0 Parkingtime(i+1,j)=0; end end end end
[SL: applied code formatting. Clarisha Nijman, in the future please use the {}Code button to format your code so it's easier to read.]
Best Answer