Hi! I have to implement a formule vp(i)=lambda*v(i)+(1-lambda)*vp(i-1)
I have used this code
for i=1:size(Users,2) for j=1:size(Users(i).data_split3,1) if (userTouristicTraj(i).touristicData(j).time_in_secs ~= 0) for l=1:size(userTouristicTraj(i).touristicData(j).time,1) userTouristicTraj(i).touristicData(j).average_speed(l)=userTouristicTraj(i).touristicData(j).travel_speed(l); userTouristicTraj(i).touristicData(j).average_speed(l+1)=lambda*userTouristicTraj(i).touristicData(j).travel_speed(l+1)+(1-lambda)*userTouristicTraj(i).touristicData(j).average_speed(l); end end endend
it doesn't run, can you give me some suggestions to solve the problem? thanks
Best Answer