wmpdictionary in matlab for matching pursuit

Hi dear friends,
I am trying to build a dictionary for sparse representation in Matlab(version 7.10.0.499-R2010a) using the following command: dict1 = wmpdictionary(N1,'LstCpt',{'dct'});
I get the following error: Undefined function or method 'wmpdictionary' for input arguments of type 'cell'.
Do I need to install a certain package?

 Accepted Answer

Yousef - wmpdictionary is part of the Wavelet Toolbox. Given the error message, it appears that you either don't have this function or the toolbox itself. To see if you do, in the Command Window type
ver
and see which toolboxes you have installed. If you do have this toolbox, type the following to see if your version has the function you are trying to use
which wmpdictionary -all

3 Comments

Yousef's answer moved here
Thanks Mr. Hayes, I tried your suggestion. I have the Wavelet Toolbox Version 4.5, but 'wmpdictionary' not found. What should I do know?
Thanks again for your time and consideration.
Yousef - I suspect that your version of MATLAB (R2010a) does not have this function. It appears (from here) that this function was added as a new feature in R2012a.
I installed R2014a. Problem solved. Thanks a lot.

Sign in to comment.

More Answers (0)

Products

Asked:

on 21 Mar 2015

Commented:

on 25 Mar 2015

Community Treasure Hunt

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

Start Hunting!