MATLAB Answers


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

Asked by Pedro Leiva Quero on 1 Aug 2019
Latest activity Commented on by Honglei Chen
on 9 Aug 2019
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
>> Pattern1D
Undefined function 'Taylor' for input arguments of type 'double'.
Error in Pattern1D (line 40)
Thanks guys!!

  1 Comment

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

Sign in to comment.

3 Answers

Answer by Walter Roberson
on 1 Aug 2019

Note that this is not at all the same as the symbolic taylor() function.


Sign in to comment.

Answer by Torsten
on 1 Aug 2019

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.


Sign in to comment.

Answer by Honglei Chen
on 1 Aug 2019

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


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)
I don't know if this error mean something to you.
Thanks for the help
MATLAB's taylorwin uses negative number to specify sidelobe level. You can try to use
instead of

Sign in to comment.