MATLAB: Solving for a variable with varying parameters in the sum
MATLABsumsvarying parameter
being the unknown variable, how to initialize and write the following equation in matlab script containing varying paramters.
(n = 0,1,2,…)
Best Answer
You cannot. That describes an infinite summation where you need to solve all infinite I_m values.
You cannot truncate it because truncation would imply that if you were to make some I_m indefinitely big for some "large" m, that it would not make a substantial difference to the summation -- but clearly if you know the a_m c_m_n R_m_n values then you can create a corresponding I_m value that overwhelms any previous sum you might have had.
I am not sure if your (sum) is intended to convey anything? Are you asking whether the sum over M is 0? If so then,
if ~sum(M(:))
Note, though, that this would be subject to round-off and cancellation problems; there are other techniques to use if you need to be concerned about those.
Best Answer