Removing error from a code...............

The main programme in matlab code:
xp = l1eq_pd(x0, A, [], y, 1e-3);
The calling function is written in another file save as l1eq_pd.m as shown below:
function xp = l1eq_pd(x0, A, At, b, pdtol, pdmaxiter, cgtol, cgmaxiter);
The given error is
Undefined function 'l1eq_pd' for input arguments of type 'double'.
Error in l1eq_example (line 46)
xp = l1eq_pd(x0, A, [], y, 1e-3);
How to i remove this error....Please help.............

 采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-2-20
编辑:Azzi Abdelmalek 2013-2-20

1 个投票

Check if the function l1eq_pd is in your working folder, the same folder where you have your main code

2 个评论

Thank you..its working..........
Then if he solved your question, please mark it as "Accepted."

请先登录,再进行评论。

更多回答(1 个)

Image Analyst
Image Analyst 2013-2-20

0 个投票

Why are you passing only 5 of the 8 arguments? Also, type "path" on the command line to see that both m-files are on the list of folders in the search path.

类别

在 帮助中心 和 File Exchange 中查找有关 Desktop 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by