在matlab中我想创建符号向量:
X = sym(['x_n' 'x_(n-1)' 'x(n-2)'])
但是,我得到
??? Error using ==> sym.sym>expression2ref at 2408
Error: Unexpected 'identifier' [line 1, col 11]
Error in ==> sym.sym>char2ref at 2378
s = expression2ref(x);
Error in ==> sym.sym>tomupad at 2147
S = char2ref(x);
Error in ==> sym.sym>sym.sym at 102
S.s = tomupad(x,'');
如果我尝试创建,例如 just X = sym(['x_n' 'x_(n-1)'])
,没关系,那么有什么问题?