How do I create this vector: [10,8,10,8,10, ...]?
显示 更早的评论
How can I create a vector that alternates 10 and 8 100 times?
1 个评论
Randy Souza
2013-4-15
I have restored the original text of this question.
@Malak: this question has a clear subject and an accepted answer, so it may be valuable to someone else in the future. If you have a good reason why it should be removed from MATLAB Answers, please flag the question, explain why it should be deleted, and an administrator or high-reputation contributor will consider deleting the question. Please do not simply edit your question away.
采纳的回答
更多回答(1 个)
Andrei Bobrov
2013-4-15
repmat([10 8],1,100)
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!