Réponse apportée Why are the 2 lines at the end so time consuming?
I don't know why it's slow on those line, but since you know the pieces of the final array, instead of calculating its dimension...
plus de 12 ans il y a | 1
Réponse apportée won't run euler method
Is this what you were looking for?
x=0;
y=1;
a=0;
b=5;
h=0.1;
n=(b-a)/h;
for i=1:n
x(i)=a+(i...