Why Undefined function 'besselzero' for input arguments of type 'double'.

9 ビュー (過去 30 日間)
Anjali Sharma
Anjali Sharma 2018 年 7 月 25 日
コメント済み: dpb 2018 年 7 月 25 日
I m running this script from Matlab examples but it is giving me error: Undefined function 'besselzero' for input arguments of type 'double'.I am using Matlab 2014a. Here is the script from mathworks for this particular example.
n = (1:2)';
k = 10;
kind = 0;
z = besselzero(n, k, kind);
x = linspace(0, z(end), 1000);
y = nan(2, length(x));
y(1,:) = besselj(n(1), x);
y(2,:) = besselj(n(2), x);
nz = nan(size(z));
nz(1,:) = besselj(n(1), z(1,:));
nz(2,:) = besselj(n(2), z(2,:));
plot(x, y, z, nz,'kx')
Anyone pls suggest why such error appears. If it is license issue then pls suggest how should I define this "besselzero". Thanks
  5 件のコメント
Anjali Sharma
Anjali Sharma 2018 年 7 月 25 日
Thanks. I simply copied this script and run on matlab. which besselzero returned not found at my end. This 'besselzero' could be any name..not compulsorily 'besselzero' as i had tried my script with different names also. All i m trying to produce this table as attached jpeg.
can you suggest something?
dpb
dpb 2018 年 7 月 25 日
"which besselzero returned not found ...can you suggest something?"
As already did, to use besselzero you'll have to obtain it from FEX and place it in a directory on the MATLABPATH for it to be found; just like any other m-file you were to write has to be on the search path as outlined in folders-that-matlab-accesses

サインインしてコメントする。

採用された回答

Steven Lord
Steven Lord 2018 年 7 月 25 日
Before you use functions that are part of an add-on from the File Exchange, you must download and install that add-on. If you're using a sufficiently recent release of MATLAB, search for "Add-Ons" in your documentation and find the equivalent of this page in your installation's documentation. If you use Add-On Explorer it will handle downloading the add-on, installing it, and ensuring it is on the MATLAB path. If you download it manually, you will need to install it and add it to the MATLAB path.

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by