Home Forums SYSTEM Output Port Define file Reply To: Output Port Define file

#21141
Ajay Vyas
Participant

Please find the new m file & .osd project file. Please check

OutputPort1 = InputPort1;
InputPort1=struct(‘TypeSignal’,’Electrical’,’Sampled’, struct,’Noise’,struct(‘Signal’,a1,’Time’,1.5938e-009),’IndividualSample’,struct);
InputPort2=struct(‘TypeSignal’,’Electrical’,’Sampled’, struct,’Noise’,struct(‘Signal’,a2,’Time’,1.5938e-009),’IndividualSample’,struct);
OutputPort1=struct(‘TypeSignal’,’Electrical’,’Sampled’, struct,’Noise’,struct(‘Signal’,c,’Time’,1.5938e-009),’IndividualSample’,struct);
a1=InputPort1.Sampled.Signal;
a2=InputPort2.Sampled.Signal;
save(‘input.mat’)
c=a2./a1;
OutputPort1.Sampled.Signal = c;
OutputPort1.Sampled.Signal= (InputPort2.Sampled.Signal./real(InputPort1.Sampled.Signal));
plot(‘InputPort2.Sampled.Signal’ , ‘InputPort1.Sampled.Signal’);
save

Attachments:

Categories