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

MATLAB: 100 element vector between A and B

  1. Jan 22, 2009 #1
    Is there a quick way to define a vector with 100 elements going between two different values?

    I know of just using division and using that as a step size, but it would be nice if there was something quicker.
  2. jcsd
  3. Jan 22, 2009 #2
    Code (Text):
    help linspace
  4. Jan 22, 2009 #3
    Thank you very much for the help! That is exactly what I am looking for.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook