I have implemented a simple Level-2 MATLAB S-Function with an inherited, fixed-in-minor-step sample time:
block.SampleTimes = [-1 1];
When running this application I receive an error about an invalid sample time:
Sample time [-1, 1] of 'test/MATLAB file (level-2) S-Function' is invalid.
Best Answer