Hi,
You can use MATLAB Production Server to do that. Deploy your code using MATLAB Production server and add that as a windows service. Refer the below docs for more information
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!