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 次查看(过去 30 天)
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 个)

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

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by