The following Matlab project contains the source code and Matlab examples used for waveguide single mode test. As for waveguide arrays, we often theoretical analyze the mode by using coupled-mode theory. All of the waveguides must be single-mode, and here I just test it. It's easy to change the parameters to get new waveguides.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.