This is a known issue that occurs when using the MATLAB/Simulink Support Package for Raspberry Pi Hardware in R2021b with Windows. To work around the issue, manually copy the missing DLLs from the MATLAB installation folder to System32 folder on Windows.
Perform the below steps to resolve the error:
1. Go to the path "C:\Program Files\MATLAB\R2021b\bin\win64".
2. Copy the missing DLLs VCRUNTIME140.dll and/or VCRUNTIME140_1.dll from this folder to "C:\Windows\System32".