switching elements in a vector
显示 更早的评论
I have a numerical vector made of ones and zeros. I would like to switch the ones and the zeros. I tried by creating a new vector vector_6 = vector_5 and then vector_6(0==1) but it gave me back an empty vector. What am I doing wrong?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Aerospace Blockset 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!