How to specify a path in matlab code?

Sir/Madam I have to use log_barrier and l1eq_pd functions from L1-magic toolbox for my Compressed Sensing project. While giving path name its showing error as:
Directory access failure: \D:\anusha\FINAL_PROJECT\FACS_Ver1.1\L1_magic\l1magic\Optimization.
and
??? Undefined function or method 'l1eq_pd' for input arguments of type 'double'.
Please tell me how to solve this problem.

1 件のコメント

B.k Sumedha
B.k Sumedha 2015 年 5 月 20 日
It almost sounds like your are missing the function l1eq_pd which is typically what this error implies. From the command line type:
help l1eq_pd
What is returned? Is there a description for this function? If not, then the function is missing.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 5 月 20 日

0 投票

Use pathtool to edit the MATLAB path to include
D:\anusha\FINAL_PROJECT\FACS_Ver1.1\L1_magic\l1magic\Optimization
with no "\" at the beginning of it.
And of course re-check that the directory is the one where the code has been placed.

カテゴリ

ヘルプ センター および File ExchangeQuadratic Programming and Cone Programming についてさらに検索

質問済み:

2015 年 5 月 20 日

回答済み:

2015 年 5 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by