File Exchange

image thumbnail

str2syms(symstr)

version 1.0.0.0 (1004 Bytes) by Bardo
str2syms evaluates a string representing a symbolic expression.

2 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 (2021). str2syms(symstr) (https://www.mathworks.com/matlabcentral/fileexchange/67519-str2syms-symstr), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!