update old data with the new one

i strugle to update the data that have some requirement
what i need is changes the value 1 to 0, step by step depending updating my data.
example
Step1 old new
1 1
0 1
0 1
step2 old new
1 0
0 0
0 0
step3 old new
0
0
0

Answers (0)

Categories

Products

Release

R2020b

Asked:

on 21 Mar 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!