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

📄 softeye.m

📁 Matlab工具包补充算发
💻 M
字号:
function M = softeye(K, p)% SOFTEYE Make a stochastic matrix with p on the diagonal, and the remaining mass distributed uniformly% M = softeye(K, p)%% M is a K x K matrix.M = p*eye(K);q = 1-p;for i=1:K  M(i, [1:i-1  i+1:K]) = q/(K-1);end

⌨️ 快捷键说明

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