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

조회 수: 2 (최근 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.
  댓글 수: 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 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