This is a toolbox to calculate EM mode profile and effective refractive index. For 1-D structures, both the analytical and FDM methods are provided. For 2-D structures, EIM, Macatili and FDM methods are provided.