I keep getting undefined function or method 'fn2fm' for input arguments of type 'struct'

1 次查看(过去 30 天)
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!

采纳的回答

Steven Lord
Steven Lord 2015-6-24
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.

更多回答(1 个)

Mukul Rao
Mukul Rao 2015-6-24
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.

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by