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.
I found a Matlab exchange file maybe relevant: web server
But I think it is not really a restful service.

1 件のコメント

Lautaro Parada
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
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.

タグ

質問済み:

em
2015 年 2 月 3 日

回答済み:

2026 年 10 月 8 日 14:11

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by