yes, I did...it is really strange I am facing all these problems since having switched to the newest matlab version..
Undefined function for input arguments of....
1 次查看(过去 30 天)
显示 更早的评论
When I want to run the following function:
function [x,y] = ueb(x,y)
if x == 0 && y == 0
disp('hello')
else
disp('bye')
end
with inputing ueb(1,0) I get the error message:
>> ueb(1,0)
Undefined function 'ueb' for input arguments of type 'double'.
and yes, I have set the path...so what is the reason and what can I do? Thanks
3 个评论
Cedric
2013-2-3
Ah, did you save this code in ueb.m ? It happens to me that I change a bit the function name and forget to rename the file ..
回答(2 个)
Shashank Prasanna
2013-2-3
MiauMiau, all these seems to be like they are either path issues or variable-function name conflicts.
Do the following since this is a relatively new installation:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
>> clear all
%%Run your code below %%
0 个评论
Azzi Abdelmalek
2013-2-3
编辑:Azzi Abdelmalek
2013-2-3
create another function, for example
function [x,y] = beu(x,y)
if x == 0 && y == 0
disp('hello')
else
disp('bye')
end
save it as beu then check if you are getting the same problem.
>>beu(1,2)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!