Hello Dears
This problem is related to the MATLAB link with LUMERICAL.
I have used the MATLAB link feature with Lumerical software, Also in MATLAB, I have written a script for sweep Jsc according to the grating width of the relevant structure.
There is a FOR loop in MATLAB script, The output of the FOR loop for the first step is a reasonable value, And the outputs after the first stage are all zero,And the output of the last step is irrationally a repetition of the first step.
what is the problem?
I tried hard but I did not succeed.
Finally, I attached the MATLAB script.
Thank you in advance for your attention.
Motahari