Forum Replies Created

    #43423
    Profile Photo
    Shayma Akram
    Participant

    could you please check the following code:

    xc = linspace(0,1,M);
    yc = linspace(0,1,M);

    A = E1 .* E2;

    B = (trapz(xc,trapz(yc, abs(A))) ).^2;

    C = trapz(xc,trapz(yc, abs(E1).^2)) * trapz(xc,trapz(yc, abs(E2).^2 ));

    OI = B./C;

    #43419
    Profile Photo
    Shayma Akram
    Participant

    I have already collected the electric field distribution from InputPort1.Sampled.Spatial.ModeX.Amplitude, but I want to know how to calculate the Overlap Integral from the “InputPort1.Sampled.Spatial.ModeX.Amplitude” in Matlab. Is it by using trapz() function in Matlab?

    #43019
    Profile Photo
    Shayma Akram
    Participant

    AMIT singh, please check <a href=”https://optiwave.com/forums/topic/use-of-the-matlab-component-optical-system/&#8221; target=”_blank”>this link</a>.

    #41697
    Profile Photo
    Shayma Akram
    Participant

    In fact, I want to do some calculations on the coupling coefficients of the input modes to generate new signals (equalize the signals).

    In this case, after sending the input data and program the overlap integral inside Matlab to get the coupling coefficients of the input modes. And after doing a calculations on these coupling coefficients, How can I send back the new signal(equalized signals) to the receiver? the OutputPort1 of Matlab component is equal to what??

    Where the OutPutPort1 should be included the equalized signals, and the structure of the OutputPort1 of Matlab component, should be similar to the structure of the InputPort1, to be send to the receiver.

    #41679
    Profile Photo
    Shayma Akram
    Participant

    Damian Marek, thank you for your prompt response to the question,

    (1) Do you mean that, the InputPort1 structer (in Matlab’s workspace), does not include the coupling coefficients?
    (2) If the coupling coefficients are calculated in the MMF, why they are not part of the InputPort1 structer?
    (3) Is it possible to calculate the coupling coefficients from the input signals?
    (4) If I calculate the coupling coefficients from the input signals, is it possible to export them to Matlab?

    InputPort1 Structure

    Attachments: