str2syms(symstr)

Version 1.0.0.0 (1004 Bytes) by Bardo
str2syms evaluates a string representing a symbolic expression.
321 Downloads
Updated 28 May 2018

View License

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

Cite As

Bardo (2026). str2syms(symstr) (https://www.mathworks.com/matlabcentral/fileexchange/67519-str2syms-symstr), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0.0