Clear Filters
Clear Filters

MATLAB API engine for python shows less data

1 view (last 30 days)
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

Answers (1)

Infinite_king on 11 Jan 2024
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,
Hope this is helpful.

Community Treasure Hunt

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

Start Hunting!