MATLAB: Is this right

factorialfor loop

Okay so my task is:
I have to make a script in matlab, which gives back the product of the first 10 element.(of this equation)
fn=((n^2)+n)/((n^3)+n!-4)
Is this right?
y=1
for i=1:10
y=y*(((i*i)+i)/((i*i*i)+(factorial(i))-4))
end
Thanks for helping, it means a lot.

Best Answer

-4 v -5?
Related Question