How to create a vector consisting of repeating 1's and 0's.
8 次查看(过去 30 天)
显示 更早的评论
I need to create a column vector consisting of alternating 1's and 0's [1 0 1 0 1 0 1 0 ... 0 1] for n times. Could anyone help assist with this?
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!