Concentric Square Matrix with and without a loop

5 visualizaciones (últimos 30 días)
Lilika Okada
Lilika Okada el 12 de Jul. de 2021
Respondida: Jogesh Kumar Mukala el 13 de Jul. de 2021
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!

Respuestas (1)

Jogesh Kumar Mukala
Jogesh Kumar Mukala el 13 de Jul. de 2021
You may refer to the answer here to see if it meets your requirements.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by