I designed a structure which includes a photonic crystal and waveguide. I want to find mode of the waveguide but I don’t want to use a mode source because it’s not precise. So I decide use a import source but I do not know how I can import data there. I don’t have more information about MATLAB.
For example, I want to import this profile to my source
Its code:code.txt (113.3 KB)
How can I change the data of this profile to MATLAB codes’ (*.mat)?