how to make Matlab function as restful API
显示 更早的评论
I have a function in Matlab. I want to make it as a restful API, so that I can obtain inputs from Ajax requests, and return outputs in Jason.
But I think it is not really a restful service.
1 个评论
Lautaro Parada
2020-5-14
You should try to read what the documentaron has to offer. I think this site may help you.
回答(1 个)
Nicole Bonfatti
2026-10-8,14:11
0 个投票
As Lautaro commented, you can use MATLAB Production Server to turn a MATLAB function into a RESTful API:
Additionally, for the last few years it has supported custom routes and payloads, so advanced users can accept arbitrary request bodies, implement different HTTP verbs, return appropriate HTTP response codes.
类别
在 帮助中心 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!