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 Related SolutionsMATLAB: Can we convert a vector elements into symbolic variables but all it elements should all act individually as symbolic variabls syms(sym('k', [4 1]))However typically you should insteadk = sym('k', [4 1])k(1) MATLAB: How to use vectors in the symprod fuction You cannot use the symbolic variable of symsum() or symprod() to index a vector.You need to create the vector of definite values first, and then sum() or prod() that definite vector. Related QuestionCould anyone help me to solve the error in the following codeHow to combine these answers into a matrixHow to find a combination like this
Best Answer