How to add 1 into the array
显示 更早的评论
I have an array
M =[1 0 0]
How can I add 1 into the array so the answer will be
N=[1 0 1]
If I add other 1, the answer will be
O = [1 1 0]
采纳的回答
更多回答(1 个)
madhan ravi
2018-12-7
编辑:madhan ravi
2018-12-7
O = M==N
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!