Home Forums GENERAL Help in Matlab Co-simulation

Viewing 1 reply thread
  • Author
    Posts
    • #90067
      Salem Alamry
      Participant

      I need some help here. I understand that topics regarding on Matlab integration have been discussed in here and i tried to read tutorials but i still face alot of errors. example like this code below which i want to see how it works, the optisystem keeps giving me this error “Encountered an improper Argument”

      Code:
      Attenuation_dB = 0; % Example: 3 dB
      Attenuation_Factor = 10^(-Attenuation_dB / 20); % Field attenuation factor

      OutputPort1 = InputPort1;

      if isfield(InputPort1, ‘Sampled’) && isfield(InputPort1.Sampled, ‘Signal’) && isnumeric(InputPort1.Sampled.Signal)
      OutputPort1.Sampled.Signal = InputPort1.Sampled.Signal .* Attenuation_Factor;
      else
      disp(‘Warning: Invalid optical signal structure.’);
      end

    • #90085
      Saurabh Bedi
      Moderator

      Hello,

      Thanks for reaching us!

      In order to proceed further and provide you with the most relevant information and support, I would appreciate it if you could share a few additional details about yourself:
      • University/Company:
      • Job Title:
      • University/Company Email:
      • Phone Number:

      Also, are you using 30-day evaluation license or do you have a paid license? If paid license, can you please share the license serial number?

      We need all this information in order to proceed further. Kindly share all this information at support@optiwave.com

      Best,
      Saurabh Bedi.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.