How can i fix this problem "Undefined function 'Taylor' for input arguments of type 'double'."
2 次查看(过去 30 天)
显示 更早的评论
I have a big Script Trying to Simulate a Radar Pattern, the Script is from a book, and a have problems in this part of the code:
%%Compute patterns
if array_params.wgtflag==0
array_params.amp_wgts=ones(array_params.nelem,1);
else
array_params.amp_wgts=Taylor(array_params.nelem,array_params.taylor.SLL,array_params.taylor.nbar);
end
Error:
>> Pattern1D
Undefined function 'Taylor' for input arguments of type 'double'.
Error in Pattern1D (line 40)
array_params.amp_wgts=Taylor(array_params.nelem,array_params.taylor.SLL,array_params.taylor.nbar);
Thanks guys!!
1 个评论
Torsten
2019-8-1
Comment by Pedro Leiva Quero
I used:
Which Taylor.m
And this is the answer:
C:\Program Files\MATLAB\R2017a\toolbox\symbolic\symbolic\@sym\taylor.m % sym method
回答(3 个)
Walter Roberson
2019-8-1
https://www.crcpress.com/downloads/K12849/MATLAB%20Program%20and%20Function%20Listings.doc has the code listings for the functions.
Note that this is not at all the same as the symbolic taylor() function.
0 个评论
Torsten
2019-8-1
MATLAB's "taylor"-function is called with a small "t" , and your argument list does not seem to be compatible with this function.
My guess is that the author of the code uses a function different from the one noted above.
0 个评论
Honglei Chen
2019-8-1
Looks like you are using a function from the book so you may want to find the function from the disc or download. You should also be able to replace it with MathWorks' taylorwin function
HTH
2 个评论
Honglei Chen
2019-8-9
MATLAB's taylorwin uses negative number to specify sidelobe level. You can try to use
-array_params.taylor.SLL
instead of
array_params.taylor.SLL
HTH
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array Geometries and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!