HELP 中有介绍:“subs(S,old,new),If old and new are cell arrays of the same size, each element of old is replaced by the corresponding element of new.”但是当old 和new 中有向量时总是出现错误,求求那位智者能给予解答!!!
syms t
t0=1/3*pi;
y=[2;2;2];
y0=[1;0;0];
S=sin(t)*y;
subs(S,{t,y},{t0,y0})
ans =
3^(1/2)
3^(1/2)
3^(1/2)
答案应该是
3^(1/2)/2
0
0