Photonics

Photonics

Topics related to Lumerical and more

phase calculation with angle of rotation (Duplicate)

    • Maimuna Nagey
      Subscriber

      I am running below script, and i get this error; "lsf line 17: in expression A(i,...) = B the indices of A were out of range". what could be the problem

      #loop over 8 equal intervals

      phase_PB_v = matrix(1,8);

      for (i =1:8){

      switchtolayout;

      select("TiO2_unitcell");

      set("first axis", "Z");

      set("rotation 1",(i-1)*180/7);

      run;

      Ex = getdata("phase", "Ex");

      Ey = getdata("phase", "Ey");

      E_L = Ex - 1i*Ey;

      phase_PB_v(1,i) = unwrap(angle(E_L));

      }

      n = linspace(1,8,8);

      plot(n,(phase_PB_v - phase_PB_v(1,1))*180/pi, "n", "phase", "phase scan");

       

    • Devika Padmakumar Nair
      Ansys Employee
Viewing 1 reply thread
  • You must be logged in to reply to this topic.