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 件のコメント
Lee McMahon
Lee McMahon 2015 年 6 月 24 日
I downloaded the latest version of Matlab and it worked. Thanks for the help!

サインインしてコメントする。

その他の回答 (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.
  1 件のコメント
Lee McMahon
Lee McMahon 2015 年 6 月 24 日
I tried this, but it didn't work so I ended up just downloading the latest version of Matlab, which worked like a charm.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by