필터 지우기
필터 지우기

persistent init and rng

조회 수: 1 (최근 30일)
DM
DM 2015년 4월 23일
댓글: Image Analyst 2015년 4월 23일
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
Image Analyst 2015년 4월 23일
Which function? If you say "doc rng" (or whatever function you want), does it bring up the help?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by