persistent init and rng

1 visualización (últimos 30 días)
DM
DM el 23 de Abr. de 2015
Comentada: Image Analyst el 23 de Abr. de 2015
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 comentario
Image Analyst
Image Analyst el 23 de Abr. de 2015
Which function? If you say "doc rng" (or whatever function you want), does it bring up the help?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by