The Level 2 MATLAB file S-Function example, msfuntmpl, contains the following two lines:
% Override input port properties
block.InputPort(1).DatatypeID = 0; % double
There is no indication of what other valid data types might be.
datatypedatatypeidfieldspossibles-functionsimulinkvalue
% Override input port properties
block.InputPort(1).DatatypeID = 0; % double
Best Answer