how to make certain pixel values = 1 or 2 with known y,x coordinates values.

Hello,
I want to make certain pixel values with known y,x - 2 while other pixels will be zero(0).
kindly assist, thanks.

Asked:

on 12 Mar 2021

Answered:

on 12 Mar 2021

Community Treasure Hunt

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

Start Hunting!