- This topic has 1 reply, 1 voice, and was last updated 1 year, 6 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Optiwave software can be used in different industries and applications, including Fiber Optic Communication, Sensing, Pharma/Bio, Military & Satcom, Test & Measurement, Fundamental Research, Solar Panels, Components / Devices, etc..
Download our 30-day Free Evaluations, lab assignments, and other freeware here.
Optiwave software can be used in different industries and applications, including Fiber Optic Communication, Sensing, Pharma/Bio, Military & Satcom, Test & Measurement, Fundamental Research, Solar Panels, Components / Devices, etc..
Download our 30-day Free Evaluations, lab assignments, and other freeware here.
I have use the MATLAB code to design a block. In that I used if else statement and it throws an error of “Atleast one end is missing” even though thr syntax is correct.
OutputPort1 = ImputPort1
a = sum(abs(InputPort1.Sampled.Signal))^2);
if (a==0)
OutputPort1.Sampled.Signal = OutputPort1.Sampled.Signal;
else
OutputPort1.Sampled.Signal = OutputPort1.Sampled.Signal/a;
end
Anyone can tell why this error occur.
Dear Sivarajan,
it looks the issue is in the statement: OutputPort1 = ImputPort1. You need to use “n” instead of “m”.
regards,
Ahmad
Notifications