jeudi 6 avril 2017

MATLAB if statement directly in function

Hello everyone i'm asking a question quite stupid... Actually i'm trying to understand one's code and in a function definition, there's directly an if statement, so i'm quite confused of its meaning... thank you!

function [noiseuv]=Addnoise(uv,noise)
if 0
noiseuv = uv + ...;
end
if 1
noiseuv = uv + noise*randn(siwe(uv));
end
end

Aucun commentaire:

Enregistrer un commentaire