How to solve '' error(message('symbolic:sym:errmsg1')); ''
5 views (last 30 days)
Show older comments
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 Comments
Answers (1)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!