关于符号运算的问题
我在程序中定义了如下几行:syms kx yt kxi yti x y real;
ni=1/8*(1+kx*kxi)*(1+yt*yti)*(2+kx*kxi+yt*yti-kx^2-yt^2);
nix=-1/8*b*yti*(1+kx*kxi)*(1+yt*yti)*(1-yt^2);
niy=1/8*a*kxi*(1+kx*kxi)*(1+yt*yti)*(1-kx^2);
但运行时报错:
Undefined function or method 'mtimes' for input arguments of type 'kx'.
Error in ==> km_nol at 5
ni=1/8*(1+kx*kxi)*(1+yt*yti)*(2+kx*kxi+yt*yti-kx^2-yt^2);
但在matlab命令窗口敲上却能运行,请问这是什么情况?
页:
[1]