Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: How to take differentiation from two set of vectors
Posted:
Jun 24, 2013 5:46 PM


On Tuesday, June 25, 2013 8:35:13 AM UTC+12, Charlie wrote: > I have two vectors x and y with 100 datas in each. I would like to take the differentiation dy/dx at each point of x. Please let me know how to do this. Is there any inbuilt function or should I write any code for this. Please let me know if you have code for this. > > > > Regards > > Charlie
First order finite difference is: dydx=diff(y)./diff(x); and if the x are equally spaced, this can be simplified: dydx=diff(y)/(x(2)x(1));



