SymPy CAS in MATLAB

版本 1.4.0.0 (2.5 KB) 作者: Jonathan Lister
Enables using Python's SymPy CAS in MATLAB
593.0 次下载
更新时间 2015/9/21

查看许可证

This function utilizes Python's SymPy module to provide symbolic capabilities for those of us who do not have the Symbolic Toolbox or a version of Matlab with Python support at our disposal. The function passes strings to and from Python via the System command. Computation of the result is easily accomplished via the vectorize and inline functions.
Example:
result = symeval('integrate','"x^2+3x-4"','x');
y = vectorize(inline(result));
plot(y([1:100])

This can be slow since the Python interpreter is started and shutdown every time the function is called. However, successive calls are sped up due to OS caching.

Another option is to use the pymex module posted on this file exchange:
http://www.mathworks.com/matlabcentral/fileexchange/27255-pymex

The best way is to just call the library directly with a version of MATLAB that supports Python.

引用格式

Jonathan Lister (2024). SymPy CAS in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/42787-sympy-cas-in-matlab), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: MAXIMA CAS in MATLAB

启发作品: MAXIMA CAS in MATLAB

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Added image and changed title text...
Updated description and comments to reflect changes in MATLAB's capabilities.

1.3.0.0

updated title, description, and other requirements text

1.0.0.0