I keep getting undefined function or method 'fn2fm' for input arguments of type 'struct'
2 views (last 30 days)
Show older comments
For the past few weeks I have been using Matlab to run a program called BWTT that is used for tracking snout and whisker movement in animals. The program had been working fine until today when I tried to use the program and got the error undefined function or method 'fn2fm' for input arguments of type 'struct.'
I'm using the 2009b version of Matlab, and had to separately download both mmread and Curve Fitting toolbox as well as the BWTT program (found at this link: http://sourceforge.net/projects/bwtt/); I'm also using Windows 64 bit. I'm fairly certain that I have added the correct pathway because it has been working for the past few weeks; for the sake of saving time, I created an m-file that I run to set the pathway and start the program, though I haven't changed that at all and don't know if that's the issue. The program still runs and even allows me to upload the video that I want to track, but when I try to track the snout movement the error pops up. I can still see the tracking on the other videos that I have worked on, but can't seem to do any new tracking. The only thing that has been changed at all was that yesterday I downloaded Matlab on another computer at my office.
Does anyone know why this is happening and/or what I can do to fix it? Any help is greatly appreciated!
0 Comments
Accepted Answer
Steven Lord
on 24 Jun 2015
In release R2009b, the FN2FM function was part of Spline Toolbox, not Curve Fitting Toolbox. Spline Toolbox was merged into Curve Fitting Toolbox in release R2010b.
More Answers (1)
Mukul Rao
on 24 Jun 2015
There is a chance that your toolbox cache has become corrupted. You can set this right as follows:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath folderName/pathdef.m
"savepath folderName/pathdef.m" saves the current search path to pathdef.m located in the folder specified by folderName.
See Also
Categories
Find more on Install Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!