How to fix this error: "Undefined function 'ellipsoiddrag' for input arguments of type 'double'."
1 view (last 30 days)
Show older comments
Function 'ellipsoiddrag' calculates the aerodynamic drag of an ellipsoid. The error message appeared out of the blue when I tried to execute the function. When I tried to execute another function which had worked two days ago, I got the same error. What have I done and how do I fix it?
0 Comments
Accepted Answer
James Tursa
on 17 May 2013
Check that the functions are in a directory that is on the MATLAB path, or that the functions are in the current directory. It could be that two days ago the current directory happened to be the directory with the functions in it (which is why they worked) but today your current directory was something else (which is why they weren't found).
2 Comments
Walter Roberson
on 20 May 2013
MATLAB uses method resolution based upon the datatype of the first argument (usually!) so you could, for example, have a defined method named ellipsoiddrag that was in the uint16 namespace but was not in the double namespace. You need both pieces of information, the name and the datatype, to properly investigate missing functions.
More Answers (0)
See Also
Categories
Find more on Search Path 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!