How to get good derivatives results in matlab?

39 Views Asked by At

I got the set of some points, and I need to get derivatives from it. I try to use the diff() function in matlab but, well, results kinda not ok. Is there any better way how I can do that?

1

There are 1 best solutions below

0
On BEST ANSWER

enter image description here

this is only an example, however, before you use the command diff, you have to declare the variable syms x and then derive with respect to x the function you wish :-)