Thanks for your replies. I got a solution. I did a reverse Loop. I started with the last item of my array in the following way. It saved much more time. Now I need only a few secs. for it
for (c=length(x):1:1)
y=diff(x(c)-x(c+1));
end
Thank you very much for your help!
Bye
Hello,
is there anybody who knows how to change the matlab included diff() function to the following form:
own diff() function: Y= X2 - X1.....Xn+1-Xn
I just have created an m File where I do this manually seperate from diff() like:
for(c=1:1:length(x)-1)
Y(c)=[(x(c)-x(c+1))];
end
The...