MATLAB: How define input data type

input

when defining a function, for example
function y = func(x)
how can I define that x is of a specific type, like uint8?

Best Answer

See
doc validateattributes