Hello Hassan,
As per my understanding you want to use “adapt” neural network on function block in Simulink. For this you can add a function block to your Simulink model and inside the function block you can use the “adapt” function to implement neural network adaption. After properly defining the input and outputs of the function, connect it to the rest of the Simulink model as needed. To configure the neural network object, you can use neural network toolbox in MATLAB.
Please go through the following link to learn more about adapt function:
And go through this documentation to learn MATLAB function block:
Hope this helps,
Krishna.