MATLAB: Error every time i want to execute the code

undefined function or method 'ideal_lp' for input arguments of type 'double

??? Undefined function or method 'ideal_lp' for input arguments of type 'double'.
i try to execute the code from text book, but, it keeps on pop up the same error in the workspace window.
how am i going to solve this problem?

Best Answer

The error message tells you, that the function "ideal_lp" is not defined. Then you have to find out, why this function is not known, e.g. because it is not in a folder of the Matlab path, or because it is a typo and should be called "ideal_1p" instead?
There is no chance that we can guess these details, so please use the debugger to find out more.
Related Question