Search code examples
matlabjava-package

How set mpv2 for MATLAB?


I'm trying to run these from Karl Skretting for dictionary learning in MATLAB. It is mentioned that mpv2 java package is needed to run these scripts for sparse approximation. where can I find this package and how can i install it so that MATLAB can use its method?

Thanks for your help.


Solution

  • You can find it here: http://www.ux.uis.no/~karlsk/dle/mpv2-class.zip

    Extract all files to folder named 'mpv2' (so folder structure is: C:\Some\Folder\mpv2)

    javaaddpath('C:\Some\Folder\')
    

    And to test for success:

    exist('mpv2.SimpleMatrix') %should return 8 indicating class.