⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 achecker.m

📁 matlab 在线性代数中的应用 利用matlab实现可以提高对所学知识的理解 更有助于你考研
💻 M
字号:
function A=achecker(n)% The command A=achecker(n) generates an nxn matrix A% whose entries alternate between 1 and 0. Specifically% C(i,j)=1 if i+j is odd, otherwise C(i,j)=0. This matrix% is similar to the checker matrix except the matrix begins% with a 0 as its (1,1) entry while the checker matrix % starts with a one. For example the command achecker(4) % will generate  the matrix%%                  0  1  0  1%                  1  0  1  0  %                  0  1  0  1%                  1  0  1  0C=ones(n,1)*[1:n];A=rem(C+C',2);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -