Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将字符串(逻辑运算和关系运算)转换为符号对象?例如..
zz = '(xx>=-4 ) & (xx<-3 )'
如何转换zz为符号对象?
zz
你试过sym命令吗?
sym
zz = sym('(xx>=-4 ) & (xx<-3 )');
这应该有效,如果xx已经是一个符号表达式,即之后
xx
syms xx