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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -