How do I fill an array with 1's in particular rows and columns that I want
8 次查看(过去 30 天)
显示 更早的评论
array = zeros(100, 100)
Now, I need to make a square filled with 1's(on the boundary as well as inside), from row 20 to 80 and column 20 to 80? how should I do this ?
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!