📄 symrandn.m
字号:
% Generate a Normal random matrix of size k, but with zero diagonal
% and ensure the matrix is symmetric (noise(i,j) == noise(j,i)).
function [noise] = symrandn(k)
temp = tril(randn(k),-1);
noise = temp + temp';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -