Undefined function or method '...' for input arguments of type 'double'.
조회 수: 3,740(최근 30일)
I'm getting the following error when I try to run some function m-files: ??? Undefined function or method '[name of function]' for input arguments of type 'double'.
I know this usually happens when the file isn't in the working directory, but that's not the case here.
When I was running these m-files in a different directory on my computer, it worked fine. I moved them to another directory on my laptop, and they're still fine, but I get this error on two of my desktops.
Eyasu getahun Chekole 2015년 4월 19일
편집: Eyasu getahun Chekole 2015년 4월 19일
I am pretty sure that the reason why this problem happened is because of the license of the toolbox (package) in which this function belongs in. Write
and see what will be the result. If it returns path of the function and the comment
"Has no license available",
then the problem is related to the license. That means, license of the package is not set correctly. Mostly it happens if the package (toolbox) of this function is added later, i.e., after installation of the original `matlab`. Please check and solve the license issue, then it will work fine.
Majid 2013년 8월 12일
In my case, there was a function that is used in my code but it was not in the directory, so by changing the location of the sub function and copying in the active directory , the problem is solved now.
Paulo Silva 2011년 4월 10일
change the working directory to the folder where you have your code or add the path.
Go to the File and choose the Set Path
Walter Roberson 2011년 4월 11일
Are you function names in mixed case, and your laptop runs Windows but your desktop runs Linux ?
n 2012년 5월 28일
Please consider that you should be EXACTLY in the same directory; and not even in sub-directories within the right path.
I hope this solves the case. It worked for me.
Keith Kripp 2013년 6월 10일
I've encountered this error when attempting to call MEX functions that were built/compiled on machines running a different version of Windows.
e.g. I build a MEX file from source code on a 32 bit machine, transfer it somewhere down the road to a 64 bit machine, and then attempt to call the function.
Seems like this error often has little to do with the arg type being 'double.'
Devi Jorks 2013년 7월 18일
in case of the sin(a) just dont put the '', then it works fine, at least on winxp 32bit
Resorcap 2014년 11월 8일
Before run function, add current absolute path:
And this worked for me.
chao dong 2016년 3월 21일
For me,the reason why this error occured was because I used a method that actually did not belongs to the object I used to invoke.This means that I should first transform my object to another type of data,for me,I actually have to change the object belongs to vehicle class to mini class to specify its data type. OOP's philosophy is indeed very important for you to understand why it occured and solve the error.
Nensi Tallamma 2016년 8월 10일
Hi i'm getting this error " ??? Undefined function or method 'wavelet' for input arguments of type 'double'." , when i'm try to run :
[wave,period,scale,coi] = wavelet (madden_julian,dt,pad,dj,s0,j1,mother);
Can anyone help me with this error?
Lang Hu 2016년 10월 11일
편집: Lang Hu 2016년 10월 11일
I met the problem ??? Undefined function or method 'cdfcalc' for input arguments of type 'double'. Besides, when I use cmd "which cdfcalc", returned that no such a function found. I wonder if I missed to install something?
Plus: When I went to the download page, I have these to download: Installer.exe MATLAB77.zip Communications_Toolbox42.zip Signal_Processing_Blockset68.zip Signal_Processing_Toolbox610.zip
I downloaded them all and installed. But when installing, it alerted me that no Simulink. How should I handle this?
0460051 NCTU 2016년 10월 11일
I have the same problem.Here is my error.
An UndefinedFunction error was thrown on the workers for 'configurePin'. This might be because the file containing 'configurePin' is not accessible on the workers. Use addAttachedFiles(pool, files) to specify the required files to be attached. See the documentation for 'parallel.Pool/addAttachedFiles' for more details.
Caused by: Error using parallel_function>make_general_channel/channel_general (line 929) Undefined function 'configurePin' for input arguments of type 'double'.
I'm trying to communicate matlab and arduino.However, it's always running wrong.What's happened?
indah octaviyani 2016년 10월 26일
i got this error,, could you help me?
Undefined function 'generateExplicit' for input arguments of type 'MPCController'.
nikhil kumar 2017년 2월 22일
I am getting this error when i run some files: Undefined function 'matplot2' for input arguments of type 'double' Error in Figure4_14 (line 42) matplot2(X,Y,abs(ISAR),20); Please help me out guys.
quach tien toan 2017년 5월 14일
i got this error,, could you help me? Undefined function 'getsnapshot' for input arguments of type 'double'.
Markes Jak 2017년 5월 24일
편집: Walter Roberson 2017년 5월 24일
Error:Undefined function ‘execute’ for input arguments of type ‘double’.
raspberry pi simulink
Actually this can happened by many problems, one of them could be, the Simulink Support Package files didn’t downloaded correctly and may be there are missing file, and to be sure of that write:
for example which execute
and see what will be the result. If it returns the comment “Has no license available” or just gives error , then follow the below soution and if returns with path and a name of the file ,then restart your matlab and check ,if not solved it could be another problem.
Download all the package again, but before doing it, you have to remove SupportPackages folder in the following path: C:\Users\your_pc_ userrname\Downloads\MathWorks and start downloading the package ,it will works and mathworks will download the all the rquired files in that path for size not less that 716MB
i just restarted my pc and matlab and every thing works well ,thanks to these maklab team people http://www.maklabacademy.com/error-simulink-support-package-raspberry-pi-hardware-2016-2017/
Toke Frederiksen 2017년 6월 2일
In my case I was simply not in the correct working directory. Changed by either CD'ing into the correct directory, or using the UI to change working directory.
lakshmi priya 2017년 8월 19일
Undefined function 'partiald' for input arguments of type 'double'. please give me answers
lakshan tharuka 2017년 9월 22일
I get the followig error.Could you please give an answer
Undefined function 'readFunctionTrain' for input arguments of type 'char'.
divyasami27 2018년 3월 12일
When I try:
I get 'envelope' not found, this is in version R2014a.
babita verma 2018년 4월 5일
편집: babita verma 2018년 4월 5일
I get the following error when I try to use mattest for tscore calculations:
Undefined function 'bioinfochecknargin' for input arguments of type 'double'
Can anyone explain why would this error occur and suggest a solution? Any help is appreciated, thanks.
Marco Nesci 2018년 5월 28일
I got this message,
Undefined function 'kalman' for input arguments of type 'double'
I controlled all the licenses and the function is present in its controldesign folder How can I solve it?
Metin Ozturk 2018년 7월 31일
It may be because the function you are trying to use is not available in your current MATLAB version. For example, if you use 'normalize' function in any version other than 2018, it will produce the same error, as the 'normalize' function was introduced in MATLAB 2018.
sena pathy 2018년 8월 16일
Undefined function 'rescale' for input arguments of type 'double'. please help me with this error
Asry Noorsal 2018년 9월 29일
hi there~ i have an error like this one "Undefined function 'ziegler_nic' for input arguments of type 'double'." i've added some file to the path but it still won't work. it will be a big help for me if anybody can solve this case, thanks before
clpi 2019년 7월 3일
I have a matlab function which at a certain point calculates sin(2*pi*freq*t_array) (t_array in an array of size (1,2000).
I tried to call this function vi matlab.engine but I got the error message: "Undefined function 'sin' for input argument of type 'int64' "
I tried what is people suggested in this topic but it didn't work. I wanted to add the file 'sin.m' to my working directory but it is not a function script, it is a simple text.
I would be very grateful of any help
Thank you !
Mosaic PCS 2020년 2월 7일
I am getting this error .plz help
Undefined function 'series' for input arguments of type 'double'.
Sreedevi R Varma 2020년 8월 25일
error:Undefined function 'recursive_max' for input arguments of type 'double'.
what to do in
if m < vec(L)
Jithin Nambiar J 2021년 4월 10일
It sometimes gives you this error if you don't have the right toolboxes installed for the certain function.
If a particular function is causing an error. Try typing
If this results in like a certain toolbox is required for this function to work. Just click on the hyperlink or underlined link which is given in the terminal.
It will direct you to the appropriate package. Make sure you save any programs. Since installing the packages requires MATLAB to restart.
Bingo Bongo 2021년 6월 18일
I am get the following error
Undefined function 'trainNetwork' for input arguments of type 'double'
Iam trying the Time series forecasting using deep learning example(Chickenpox) code.
iam using version R2012b of Matlab