matlab 怎么定义一个正整数的字符变量

如题所述

syms a
solve('a^2=1') %得到的是正负1

syms a positive
solve('a^2=1') %得到的只有+1
温馨提示:答案为网友推荐,仅供参考
相似回答