persistent init and rng
조회 수: 2 (최근 30일)
이전 댓글 표시
I found the following command in a built in function in MATLAB, can anyone please explain to me what they mean?
persistent init;
if isempty(init)
init = 1;
rng(seed);
end
Thanks
댓글 수: 1
Image Analyst
2015년 4월 23일
Which function? If you say "doc rng" (or whatever function you want), does it bring up the help?
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!