What does for i = 1:n and f = prod(1:n) mean ? in matlab?

in the event that n=10

confronted with
my partner and i = ONE:n as well as f = prod(1:n) mean

would it be a loop and is particularly i all of the values via 1-10 or maybe does the item mean anything else

i = 1:10 will make a vector post with amounts 1, TWO, 3, 5…., 10

regarding i=1:10 may be a loop which executes 12 times by using incremental prices of when i from ONE though 10.any switch in price of ‘i’ included in the loop is definitely neglected.

prod(1:10) is usually product regarding 1*2*3*…..*10.

Leave a Reply