Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Tankeswar Kumar
Tankeswar Kumar am 20 Feb. 2013
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.............

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 20 Feb. 2013
Bearbeitet: Azzi Abdelmalek am 20 Feb. 2013
Check if the function l1eq_pd is in your working folder, the same folder where you have your main code
  2 Kommentare
Tankeswar Kumar
Tankeswar Kumar am 20 Feb. 2013
Thank you..its working..........
Image Analyst
Image Analyst am 20 Feb. 2013
Then if he solved your question, please mark it as "Accepted."

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 20 Feb. 2013
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.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by