signmat.m
来自「线性代数实验及MATLAB入门,电子工业出版社出版 陈怀琛 龚杰民合著」· M 代码 · 共 7 行
M
7 行
function S=signmat(n)
% The command S=signmat(n) will generate
% a matrix whose entries alternate between
% 1 and -1. Specifically the (i,j) will be
% 1 if i+j is even, otherwise it will be -1.
S=2*checker(n)-1;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?