MATLAB: Doesn’t symprod recognize indexed variables

indexsymprodvariables

I was expecting to get: k1*k2*k3*k4. Instead . . . .

Best Answer

Hi,
try:
syms k(n)
symprod(k(n),n,1,4)
this should give you the expected result.
Best regards
Stephan