for n = 3:length(x) y1 = x(2:n) ; t1 = ((n-2):-1:0)*dt ; % y2 = x(1:n-1) ; y2 = y1 - 1 ; t2 = t1 +dt; int(n) = sum (t1.^(k-1)/factorial(k-1).*y1 + t2.^(k-1)/factorial(k-1).*y2)*dt/2 ;
I want to define y2= y1 -1 instead y2= x (1:n-1) which I have commented above. By y2 = y1 - 1, occurred some errors in MATLAB. Why? It is not correct?
No products are associated with this question.