How to use matlab component to run matlab code in optisystem
I wrote a code in matlab and I am trying to run it on the matlab component. I saved the file name as salinity but when I included the filename “salinity” in the run command of the matlab component and added the matlab search path and ran the simulation, the error message is ” Undefined variable OutputPort1 or class OutputPort1.Channels”. I changed the run command of the matlab component to “OutputPort1= InputputPort1 and the simulation was successful. I want to run the command saved in the salinity file on the matlab component of the optisystem please how can I do it?
Login You must be logged in to reply to this topic.