How to add 1 into the array
Show older comments
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]
Accepted Answer
More Answers (1)
madhan ravi
on 7 Dec 2018
Edited: madhan ravi
on 7 Dec 2018
O = M==N
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!