Help!!!!!!!! How to replace all the zeros in an array with -1?
Show older comments
X = [1 0 0 0 1 0 0 1 1 0 1 0 1 1 1] i want to replace all zeros with -1 in array. anybody can help ?
Accepted Answer
More Answers (1)
Categories
Find more on Test and Measurement in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!