How to solve the error of solving bessel function

1 回表示 (過去 30 日間)
Jun Xiao
Jun Xiao 2020 年 3 月 12 日
回答済み: Steven Lord 2020 年 3 月 12 日
I want to solve Bessel funnction using for loop, but it always give me the warning: Undefined function 'slove' for input arguments of type 'sym'.
Here is my codes:
clc; clear all; close all;
syms a
n2 = 1:0.001:1.44;
n1 = 1.445;
y = n2/n1;
d = y.^2+1;
for n3 = 1000:1440
a1 = (((n3*0.001)./n1).^2+1)*besselj(1,a);
b1 = (a*besselj(2,a));
c1= a1-b1==0;
e= slove(c1,a);
end
plot(e,y,'b')

採用された回答

Steven Lord
Steven Lord 2020 年 3 月 12 日
You have a typo in your code. You want to call the solve function, not the slove function.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBessel functions についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by