I am working for writing a script for plotting the spp dispersion. I am modifying an existing .m file.

I have trouble with the following error:

Index exceeds the number of array elements (1).

Error in resonance (line 190)

fsrc1=exp(1i*(kinc(1)*Y+kinc(2)*X));

I wonder if someone can help me to find the uncorrect array .

## Best Answer