how to create a time victor ?

3 views (last 30 days)
Fred Ahmad
Fred Ahmad on 21 Mar 2019
Answered: Peter Perkins on 21 Mar 2019
How to create a time vector contaning 3000 element at a rate of 1 miilion samples per second?
  1 Comment
Adam Danz
Adam Danz on 21 Mar 2019
If you google "Matlab how to create time vector" or if you search this forum, you'll get dozens (or hundreds) of solutions. You got this!

Sign in to comment.

Answers (1)

Peter Perkins
Peter Perkins on 21 Mar 2019
How would you create any vector that long in MATLAB? You'd probably use the colon operator. Do that with time values. Pick your start point, your end point, and your step size. See the documentation for datetime and (probably) seconds.

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!