Hi Saurabh,
You can modify the parameters using the following MATLAB commands:
blockPath = 'model_name/block_name';
blockHandle = getSimulinkBlockHandle(blockPath, true);
set_param(blockHandle, 'parameter_name', 'parameter_value');
Please refer the below documentations for 'set_param' and 'getSimulinkBlockHandle' functions:
- https://www.mathworks.com/help/simulink/slref/set_param.html
- https://www.mathworks.com/help/simulink/slref/getsimulinkblockhandle.html
I hope it helps!