Undefined function 'trapmf' for input arguments of type 'double'.
2 次查看(过去 30 天)
显示 更早的评论
Hi, I used the functions trapmf and trimf in a code for designing a fuzzy controller, and they worked.
Err_X=[-75:1:75]; %% Universe
NB=trapmf(Err_X,[-75 -75 -40 -10]);
Then, I downloaded NI Elvis software for myDaq, and now I run the same code, but it says undefined. I tried this
which trapmf
C:\Program Files\MATLAB\R2016a\toolbox\fuzzy\fuzzy\trapmf.m % Has no license available
This is wierd because my matlab license has not expired yet, and I also have fuzzy toolbox 30 day trial, and it has not expired yet, and it is not working either even though when I use the command ver, I see the toolbox. I also typed path in command windows and I found this
C:\Program Files\MATLAB\R2016a\toolbox\fuzzy\fuzzy
I went to this directory and I found trapmf and trimf files there and I could open them.
I searched online for a solution, and some people talked about the file directory, and I have the script file in matlab directory.
Could you please help me solve this issue. Thanks
0 个评论
回答(2 个)
Sam McDonald
2017-4-19
From what you have described, it does appear that your trial has expired, or at least MATLAB registers that the trial has expired. This is another post related to your same issue:
If you are certain that your trial has not expired, you could try to the following commands:
restoredefaultpath
rehash toolboxcache
Try your script again. If that resolves the issue, then execute
savepath
You could also try Home > Help > Licensing > Update Current Licenses or Manage Licenses to see if your trial for the Fuzzy Logic Toolbox is still active.
2 个评论
Sam McDonald
2017-4-19
Glad you got it working now. I have posted an Answer below for others to see if they have the same issue.
Sam McDonald
2017-4-19
Installation of thrid-party software may have currupted the MATLAB installation. A re-installation of MATLAB solves this issue
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bloomberg Desktop C++ Interface 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!