Install any skill in seconds. Free to start, no credit card required.
Get Started Free →matlab/matlab-call-python
Call Python libraries from MATLAB using the py. interface, pyrun, pyrunfile, or pyenv.
Passed 22 of 23 test cases with the skill, and 12 of 23 without it.
and 8 more in the full report
10 fixed12 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am calling `py.math.factorial` from MATLAB, passing an integer count of 10. How should the integer argument be passed to ensure Python receives an integer rather than a float?
| Checked | Without skill | With skill |
|---|---|---|
| The response explicitly casts the integer count argument using int32(10). | Missed | Passed |
The instructions your model reads when the skill loads.
Call Python libraries from MATLAB using modern APIs, correct environment setup, and structured error recovery.
py.*, pyrun, or pyrunfileModuleNotFoundError, Python is not configured, or
other Python-related errorspyargsUse MATLAB name=value syntax for Python keyword arguments. pyargs is outdated
(name=value available since R2021a).
% TEMPLATE — not executable (requires scikit-learn)
rfc = py.sklearn.ensemble.RandomForestClassifier(n_estimators=int32(100), random_state=int32(42));
pyversionpyversion is not recommended. Use pyenv, which supports terminate, ExecutionMode,
and environment switching.
Do not use MATLAB system(). The Bash tool provides streaming output and avoids
test cases passed, vs 12 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.