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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: MATLAB: 100 element vector between A and B
Loading...