Troubleshooting Missing MATLAB Toolbox Functions

  • Context: MATLAB 
  • Thread starter Thread starter mikeph
  • Start date Start date
  • Tags Tags
    Function
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
mikeph
Messages
1,229
Reaction score
18
I'm trying to use the fanbeam.m function for some experimenting and when I select the example in the help file and press F9, I'm getting an error on the line where it uses the function.

I type "help fanbeam" and get No help found for fanbeam.m.

I may have written an m-file called this in the past, it's the only reason I can think it wouldn't work, but this file is not in my workspace at the moment.

Any ideas why this MATLAB toolbox function is missing/lost?

Thanks
 
Physics news on Phys.org
What does Matlab say when you type "which fanbeam"? If you don't get anything, it means the function is missing from the path. If that's the case, then either the m file is missing, or the path is missing the proper folder. If you get a path, and it's not the toolbox path, then you have another fanbeam.m file which takes precedence.
 
caffenta said:
What does Matlab say when you type "which fanbeam"? If you don't get anything, it means the function is missing from the path. If that's the case, then either the m file is missing, or the path is missing the proper folder. If you get a path, and it's not the toolbox path, then you have another fanbeam.m file which takes precedence.

It's in the MATLAB folder! I guess it takes precedence, did not realize it would look outside of the workspace!

Renamed it and it's working perfectly now! Thanks.