setmyseed.m
来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 11 行
M
11 行
function setMySeed(mySeed)%% set the seed -- matlab seems to do this in a screwy way, once%% for rand and once for randn and all other functions...randn('seed',mySeed);rand('seed',mySeed);%% note that lightspeed has some functions which will bypass this and%% always be random, such as sample_hist.m, for example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?