How can i fix this problem "Undefined function 'Taylor' for input arguments of type 'double'."

조회 수: 3 (최근 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
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
Walter Roberson 2019년 8월 1일
Note that this is not at all the same as the symbolic taylor() function.

Torsten
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.

Honglei Chen
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
Pedro Leiva Quero
Pedro Leiva Quero 2019년 8월 9일
Hi Honglei, thanks for the answer, i have a new error code:
>> Pattern1D
Error using taylorwin>validateinputs (line 115)
The sidelobe level SLL must be a negative number.
Error in taylorwin (line 44)
[N,NBAR,SLL] = validateinputs(varargin{:});
Error in Pattern1D (line 40)
array_params.amp_wgts=taylorwin(array_params.nelem,array_params.taylor.SLL,array_params.taylor.nbar);
>>
I don't know if this error mean something to you.
Thanks for the help
Honglei Chen
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 CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by