MATLAB: How to fix this error: “Undefined function ‘ellipsoiddrag’ for input arguments of type ‘double’.”

input argumentstype 'double'undefined function

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?

Best Answer

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).
Related Question