フィルターのクリア

use of polyxpoly to find roots

2 ビュー (過去 30 日間)
vipul kumar
vipul kumar 2020 年 4 月 23 日
編集済み: Pravin Jagtap 2020 年 4 月 28 日
I have used this code to find the roots but it is giving an error.
clc
clf
b=linspace(0,1);
x=8;
p= x.*(sqrt(1-b)).*(((besselj(1,x.*sqrt(1-b)))./(besselj(0,x.*sqrt(1-b)))));
q = x.*(sqrt(b)).*((besselk(1,x.*sqrt(b)))./(besselk(0,x.*sqrt(b))));
plot(b,p)
hold on
plot(b,q)
[xx,yy] = polyxpoly(b,p,b,q)

回答 (1 件)

Pravin Jagtap
Pravin Jagtap 2020 年 4 月 27 日
編集済み: Pravin Jagtap 2020 年 4 月 28 日
Hello Vipul,
Refer to the following documentation for understanding how 'ployxpoly' works:
From your code, I can see that the first value of 'q' vector is 'NaN' (Not a Number) which is not acceptable. Please check how you can handle that corner case.
Hope this will help you.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by