MATLAB if statement directly in function -
hello i'm asking question quite stupid... i'm trying understand one's code , in function definition, there's directly if statement, i'm quite confused of meaning... thank you!
function [noiseuv]=addnoise(uv,noise) if 0 noiseuv = uv + ...; end if 1 noiseuv = uv + noise*randn(siwe(uv)); end end
Comments
Post a Comment