MATLAB: 100 element vector between A and B

  • Context: MATLAB 
  • Thread starter Thread starter TheFerruccio
  • Start date Start date
  • Tags Tags
    Element Matlab Vector
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
TheFerruccio
Messages
216
Reaction score
0
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.
 
Physics news on Phys.org
Code:
help linspace
 
Thank you very much for the help! That is exactly what I am looking for.