Concentric Square Matrix with and without a loop

Hi,
I am new to matlab and could use some help. I need to create a 31 by 31 matrix of concentric squares by setting squareSize=31 and store the result as squares31 one with a loop and one without using a loop.
Please let me know how I should go about this!

回答 (1 件)

Jogesh Kumar Mukala
Jogesh Kumar Mukala 2021 年 7 月 13 日

0 投票

You may refer to the answer here to see if it meets your requirements.

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2021 年 7 月 12 日

回答済み:

2021 年 7 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by