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

조회 수: 4 (최근 30일)
Tankeswar Kumar
Tankeswar Kumar 2013년 2월 20일
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일
Check if the function l1eq_pd is in your working folder, the same folder where you have your main code
  댓글 수: 2
Tankeswar Kumar
Tankeswar Kumar 2013년 2월 20일
Thank you..its working..........
Image Analyst
Image Analyst 2013년 2월 20일
Then if he solved your question, please mark it as "Accepted."

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2013년 2월 20일
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.

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by