This MATLAB function executes a Tcl command on the Xcelium or ModelSim simulator using a shared connection during a Simulink cosimulation session.
-ncsim_args,<string> Pass arguments to simulator. (ncsc_run compat) -ncsimargs <string> Pass arguments to simulator -ncsimexe <exe> Specify simulator with statically linked PLI -ncsimfile File for generated sim options from import -ncuid <arg> Specify a unique ID for this invocation -ncvhdl...
Interestingly, the argument to the -input switch, which is also a filename comes trough ok. Since the -f switch provides a file with more arguments, my guess is that the value is a reference to another structure that contains the arguments in the file, or something like that. Does cocotb...