Concentric Square Matrix with and without a loop

조회 수: 1 (최근 30일)
Lilika Okada
Lilika Okada 2021년 7월 12일
답변: Jogesh Kumar Mukala 2021년 7월 13일
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일
You may refer to the answer here to see if it meets your requirements.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by