This function is a more robust and improved version of my previous submission, matchingpursuit.m
This function computes the projection of a given input vector or matrix onto a "dictionary" of other vectors or matrices using a matching pursuit algorithm. Users may input a vector to be synthesized, or a matrix. The dictionary elements are input as arrays. See "help matchPurs.m". You must also download normColumns.m from the exchange.
Joshua Carmichael (2021). matchPurs.m (https://www.mathworks.com/matlabcentral/fileexchange/27454-matchpurs-m), MATLAB Central File Exchange. Retrieved .
nice it can help me to do mptk
I downloaded matchpurs.m file and tried to work with it but i hung with the following error.
>> [sig sampleRate] = sigread('vipmen1.wav');
dict = dictread(mptkInfo.path.defaultDict);
>> [S,R,e,indx] = matchPurs(sig,dict);
??? Undefined function or method 'mtimes' for input arguments of type 'struct'.
Error in ==> matchPurs at 63
ipvec(k) = trace(R'*W(:,:,k))./norm( W(:,:,k), 'fro');
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!