Actually I have some parameters, which are passed to the sfunction, one of them is the number of inputs, another one is if I want to complement an input, and so on.
Based on these parameters the mask display change.
For a block with a fixed number of inputs I can do that by using a callback function.
But with a block where the inputs number is custom defined and modifiable, I am not capable to do that so I thought to cope this problem inside the mdlInitializeSizes method of the C-sFunction.