matlab程序出错
syms w p k x a C1 C2 C3 C4 l C A % Definition the boundary conditions C1=1-cos(2^k*pi*x/l); n=input('input n'); Ci=zeros(1,n); for z=1:n Ci(1,z)=subs(C1,k,z); end 提示循环体有错。 ??? The following error occurred converting from sym to double: Error using ==> mupadmex Error in MuPAD command: DOUBLE cannot convert the input expression into a double array. If the input expression contains a symbolic variable, use the VPA function instead. Error in ==> Untitled at 8 Ci(1,z)=subs(C1,k,z);