MATLAB Help Center
Stop REST function service from MATLAB
Since R2024a
stop(service)
stop(service) stops a running MATLAB® REST function service and updates the Status property of the RESTFunctionService object to notrunning.
service
Status
RESTFunctionService
notrunning
example
collapse all
Suppose you have a MATLAB REST function service containing multiple MATLAB functions. Stop the service.
Confirm that the service is no longer running by checking the Status property of the service.
service = RESTFunctionService with properties: Name: "myService" Functions: ["myAdd" "myMagic" "mySub"] ClientAccessMode: local FunctionConnector: [1×1 matlab.engine.rest.RESTFunctionConnector] ClientRequestInfo: [0×0 matlab.engine.rest.ClientRequestInfo] Status: notrunning
REST function service, specified as a RESTFunctionService object.
Introduced in R2024a
restFunctionServices
start
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office