- the asignment [m,n]=x is impossible in matlab, you can should define them seperatly:
- no need to define saltpepper_noise twice, you can just use the second line
- in a for loop, you use the syntax for i=1:m
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!