MATLAB: Where is inport value coming from


I am trying to decipher a Simulink model that someone else wrote. Several blocks have inports labeled 'position'. But I can't figure out if 'position' is calculated during the simulation (though I expect that it is) or is pulled in from the workspace. If 'position' comes from the workspace, it must have another name; there are no variables in the workspace with this name.
Is there a way to trace and identify the value that goes into an inport?

Best Answer

  • See Importing Data to Root-Level Input Ports. In particular, you need to look at the Configuration Parameters > Data Import/Export > Input parameter.