Matlab code with % symbol? -


i'm supposed replicate model, have never came across matlab code has code in % area before. when did simple assignments, matlab code , % means preformatted text description of results have. so, reading paper , i'm wondering how code work when there % inside? doesn't mean text? happens if % removed code?

enter image description here

i know says not enough input arguments, let

eradode(a,b,ze,d,ti,dt,s1,z1,r1)

eradode(0.005,0.0095,0.0001,0.0001,10,1,500,0,0)

but computation.

enter image description here

so, computation code? if remove % on plot(t,z) lead me error because t unknown.

the original code on last few pages of paper when zombies attack

i know i'm going why copying comments...here answer. didn't feel comfortable doing assignment because thought should come own, professor told me replicate models paper , write results in own words. well, i'm going cite every sentence out in case.

in matlab % symbol used indicate start of comment. comments can anywhere in script. used describe happening acting explanation. if % symbol removed when run code matlab read line , attempt run it, based on libraries has access to. if text isn't actual code cause error.

if read the description @ beginning of function in paper. says using defined inputs, vector of solutions on predetermined amount of time produced. question yes computation code. describes inputs should in order function operate correctly.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -