当前位置:编程学习 > Matlab >>

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);
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,