MATLAB Answers

create a vector of 0 and 1s that takes 1 at a fixed interval

5 views (last 30 days)
I would like to create a vector of 0s that takes 1 at a given (m) interval. For example, if m=2, the vector will be like
what will be a simpler way to create such vector?

More Answers (2)


Community Treasure Hunt

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

Start Hunting!