Forum Replies Created

    #40948
    Profile Photo
    Andres Triana
    Participant

    Yes Damian, thanks so much, effectively the frequency vectors were different and that’s the origin of the problem, I was only paying attention to the number of samples. I’ll re-shape my signals and everything should now be ok.

    thanks again for your time,

    best,

    #40931
    Profile Photo
    Andres Triana
    Participant

    Yes Damian, I have simulated each matlab component independently without seeing neither the inputport1 nor the outputports duplicated in length, however when I concatenate the two components The Inputport1 appears to be duplicated, Im sending attached files in case you want to run the simulation or give a look to the mfiles, maybe Im doing something wrong in there.

    thanks,

    #40928
    Profile Photo
    Andres Triana
    Participant

    Hi Damian, I think Im treating properly the signals in the m-files, in fact, using just one Matlab structure there is no problem at all.
    I guess that optisystem calls the two scripts at the same time, and since the variable ‘InputPort1’ is used by the two scripts, it probably is overwriting the variable.