What is the function of the following program. A=magic(10); sizeA= size(A,1); for i=1: sizeA j=i; A(i,j)=0; A(i, sizeA-j+1)=0;

1 view (last 30 days)
What is the function of the following program. A=magic(10); sizeA= size(A,1); for i=1: sizeA j=i; A(i,j)=0; A(i, sizeA-j+1)=0;

Answers (1)

Image Analyst
Image Analyst on 3 Dec 2021
Just watch what happens to A as you step through the code.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!