How can I use MATLAB to take the derivative of an experimental plot?

  • Context: MATLAB 
  • Thread starter Thread starter lcr2139
  • Start date Start date
  • Tags Tags
    Matlab Mean
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
lcr2139
Messages
58
Reaction score
0
In MATLAB, what does ./ mean?

Also, I would like to take the derivative of an experimental plot. How do I do so?
 
Physics news on Phys.org
Also, how do you integrate it?
 
Also, how do you subtract two experimental plots from each other?
 
Its used to pair elements of a vector together to divide them.

As an example, try this:
Matlab:
x = [ 1 : 10 ]
y = [ 1 : 0.5  : 5 ]
x ./ y
It divides each element of x by an element of y

or this
Matlab:
x = [ 0  : 0.1 : 10 ]
y = x .* x
plot( x , y )
squares each element of x and plots a parabola x vs y chart