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
Click For Summary

Discussion Overview

The discussion revolves around using MATLAB for various operations related to experimental plots, specifically focusing on taking derivatives, integrating, and subtracting plots. The scope includes technical explanations and practical applications of MATLAB functions.

Discussion Character

  • Technical explanation, Experimental/applied

Main Points Raised

  • One participant inquires about the meaning of the operator "./" in MATLAB.
  • Another participant asks how to integrate an experimental plot using MATLAB.
  • A different participant seeks guidance on how to subtract two experimental plots from each other.
  • One participant explains that "./" represents element-wise right division (rdivide) in MATLAB.
  • Another participant elaborates that "./" is used to pair elements of vectors for division, providing examples of its usage with vectors.
  • Examples are given, including dividing two vectors and plotting a parabola using squared values.

Areas of Agreement / Disagreement

The discussion does not present a consensus, as participants are asking questions rather than providing definitive answers or solutions.

Contextual Notes

Participants have not provided specific methods for taking derivatives or integrating plots, leaving those inquiries unresolved.

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
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K