필터 지우기
필터 지우기

MATLAB API engine for python shows less data

조회 수: 1 (최근 30일)
ashraful alam
ashraful alam 2022년 4월 25일
답변: Infinite_king 2024년 1월 11일
Whenever, I run the code on MATLAB it get 32700+ values but If I run the same functions and parameters in the MATLAB API engine for python. I get very negligible amount of values like 32, 78, etc...
Please help

답변 (1개)

Infinite_king
Infinite_king 2024년 1월 11일
Hi ashraful alam,
The possible reason for this discrepancy is differences in data or input parameters between running the MATLAB code directly and using the MATLAB API engine for Python.
The solution is:
  • Carefully compare and ensure that the input data and parameters provided to the MATLAB functions are consistent in both scenarios.
  • Examine the MATLAB environment initialization, including any necessary settings or environment variables, to guarantee uniformity.
  • Use debugging tools in MATLAB to analyse intermediate steps and identify where the discrepancy arises.
  • Check the MATLAB version to ensure compatibility between the two scenarios.
  • Examine any error messages or warnings generated during code execution.
  • Ensure that dependencies and files are accessible.
  • Implement additional logging or diagnostic statements in the MATLAB code to capture intermediate results and aid in pinpointing the issue.
  • Reinstall the MATLAB engine and checkout this troubleshooting steps, https://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html#mw_4b80d62e-4375-4310-b350-d3f4c509c83e
Hope this is helpful.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by