Deploy with Generic C/C++ Code. Follow this link. Use Matlab 2021a for that.
https://www.mathworks.com/help/coder/ug/generate-generic-cc-code-for-deep-learning-networks.html
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!