Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB -- what does ./ mean?

  1. Jun 9, 2016 #1
    In MATLAB, what does ./ mean?

    Also, I would like to take the derivative of an experimental plot. How do I do so?
     
  2. jcsd
  3. Jun 9, 2016 #2
    Also, how do you integrate it?
     
  4. Jun 9, 2016 #3
    Also, how do you subtract two experimental plots from each other?
     
  5. Jun 9, 2016 #4

    MarneMath

    User Avatar
    Education Advisor

  6. Jun 9, 2016 #5

    jedishrfu

    Staff: Mentor

    Its used to pair elements of a vector together to divide them.

    As an example, try this:
    Code (Matlab M):

    x = [ 1 : 10 ]
    y = [ 1 : 0.5  : 5 ]
    x ./ y
     
    It divides each element of x by an element of y

    or this
    Code (Matlab M):

    x = [ 0  : 0.1 : 10 ]
    y = x .* x
    plot( x , y )
     
    squares each element of x and plots a parabola x vs y chart
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted