I want to write a code for an equation (given in link) but I don't know how can I write double summation sign in MATLAB when one variable goes to infinity and other not. The equation was put forward by Pinder et al 1969 (the paper is attached)
https://latex.codecogs.com/gif.latex?Summ&space;=&space;\sum_{m=1}^{p}\sum_{n=1}^{\infty&space;}(-1)^{n-1}\Delta&space;H.{erfc\frac{2(n-1)u+u\gamma}{2\gamma&space;\sqrt{p-m}}+erfc\frac{2nu-u\gamma}{2\gamma&space;\sqrt{p-m}}&space;}