Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PsyDelic

    own diff() function: Y= X2 - X1.....Xn+1-Xn

    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
  2. PsyDelic

    own diff() function: Y= X2 - X1.....Xn+1-Xn

    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...

Part and Inventory Search