Posts by Rebecca Tenenbaum • 1 point
1 post
-
0
votes1
answer37
viewsQ: Matlab: how to write a function that takes a number n and returns P = 1*1.2*1.4*.... *(1+0.2*(n-1))
How could you create a function called repeat_prod(n) that takes a number n and returns this function P = 1*1.2*1.4*....(1+0.2(n-1)) I’m having a hard time understanding how this function should be…