str2syms evaluates symstr where symstr is a string representing a symbolic expression.
Additionally to str2sym, str2syms declares unknown variables as symbolic in the caller workspace.
Example:
syms x y
y = x;
z = str2syms('a + y')
creating symbolic variable a
z =
a + x
引用格式
Bardo (2024). str2syms(symstr) (https://www.mathworks.com/matlabcentral/fileexchange/67519-str2syms-symstr), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2014b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- Mathematics and Optimization > Symbolic Math Toolbox > Symbolic Computations in MATLAB > Symbolic Variables, Expressions, Functions, and Preferences >
在 Help Center 和 MATLAB Answers 中查找有关 Symbolic Variables, Expressions, Functions, and Preferences 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |