Why the response of Microservice difference the result of MATLAB directly?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
In my project, I need to write a FastAPI to call a function in Matlab. Initially, I used matlabengine, but it was too slow. That's why I chose to create a microservice with a Docker image. However, both methods are returning false results.
Additionally, when I attempt to call another function within the .m file through the microservice, I encounter an error. However, the same function works without any issues when executed directly in MATLAB.
0 Kommentare
Antworten (1)
Nicole Bonfatti
am 2 Aug. 2023
Bearbeitet: Nicole Bonfatti
am 2 Aug. 2023
Hard to tell exactly with the info given, but my suggestion would be to use the testing functionality in the Production Server Compiler app to understand what's happening differently from your REST call versus your MATLAB function call. You can use the MATLAB Production Server test functionality to have your MATLAB instance work like the microservice and debug the REST call by setting breakpoints and stepping through it.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Application Deployment finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!