フィルターのクリア

How do I fill an array with 1's in particular rows and columns that I want

6 ビュー (過去 30 日間)
Sagar  Saxena
Sagar Saxena 2018 年 6 月 15 日
回答済み: Walter Roberson 2018 年 6 月 15 日
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 ?

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 6 月 15 日
array(20:80, 20:80) = 1;

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by