Thank you for your response. i would like to ask about this command:
OutputPort1 = InputPort1;
still i have to use it when using for example electrical null component as an input to the matlab component? what are the changes i should make to the matlab code in this case?