How to solve '' error(message('symbolic:sym:errmsg1')); ''
5 次查看(过去 30 天)
显示 更早的评论
syms m x y z n k xx. yy. zz.
n = 1.6;
k = 0.000005;
x = linspace(-0.000015, 0.000015, 10);
z = linspace(-0.00003, 0.00003, 10);
[xx, zz] = meshgrid(x, z);
yy = symsum(1i^(-m)*exp(1i*m*atan(zz./xx)).*(besselj(m,k*sqrt(xx.^2+zz.^2))-((n*diff(besselj(m,n*k*10^(-6)))*besselj(m,k*10^(-6))-besselj(m,n*k*10^(-6))*diff(besselj(m,k*10^(-6))))/(n*diff(besselj(m,n*k*10^(-6)))*besselh(m,k*10^(-6))-besselj(m,n*k*10^(-6))*diff(besselh(m,k*10^(-6)))))*besselh(m,k.*sqrt(xx.^2+zz.^2))),m,0,10);
mesh(xx, yy, zz);
however, the system says:
>> Untitled2
Error using syms (line 265) error(message('symbolic:sym:errmsg1'));
Invalid variable name.
Error in Untitled2 (line 1)
syms m x y z n k xx. yy. zz.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!