MATLAB -- what does ./ mean?

  • MATLAB
  • Thread starter lcr2139
  • Start date
  • #1
62
1
In MATLAB, what does ./ mean?

Also, I would like to take the derivative of an experimental plot. How do I do so?
 

Answers and Replies

  • #2
62
1
Also, how do you integrate it?
 
  • #3
62
1
Also, how do you subtract two experimental plots from each other?
 
  • #5
12,520
6,309
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
 

Related Threads on MATLAB -- what does ./ mean?

Replies
1
Views
4K
Replies
2
Views
3K
Replies
1
Views
26K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
22
Views
2K
Replies
3
Views
713
Replies
8
Views
3K
Replies
4
Views
10K
Replies
2
Views
6K
Replies
2
Views
2K
Top