📄 cyclic.m
字号:
function C=cyclic(n)
% The command cyclic(n) generates an nxn matrix
% with 1's on the diagonal just above the main
% diagonal and a 1 in the lower left hand corner.
% The remaining entries of the matrix are all 0.
C=diag(ones(n-1,1),1);
C(n,1)=1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -