Mercurial > hg > smallbox
diff util/classes/@dictionary/dictionary.m @ 184:8fc38e8df8c6 danieleb
Minor edits
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Fri, 27 Jan 2012 13:18:50 +0000 |
parents | e3035d45d014 |
children |
line wrap: on
line diff
--- a/util/classes/@dictionary/dictionary.m Fri Jan 27 13:15:11 2012 +0000 +++ b/util/classes/@dictionary/dictionary.m Fri Jan 27 13:18:50 2012 +0000 @@ -31,7 +31,7 @@ switch lower(phi) case 'dct' obj.phi = dctmatrix(len,nAtoms); - case 'grassmanian' + case 'grassmannian' obj.phi = grassmanian(len,nAtoms); otherwise obj.phi = MatrixEnsemble(len,nAtoms,phi); @@ -41,8 +41,7 @@ obj.name = lower(phi); end end - end - + end %% Dependent properties function redundancy = get.redundancy(obj) redundancy = obj.nAtoms/obj.len; @@ -63,8 +62,7 @@ %% Operations function obj = normalize(obj) obj.phi = normcol(obj.phi); - end - + end %% Visualization function image(obj) %Image of the dictionary @@ -101,8 +99,7 @@ plot(imag(obj.phi(:,n))); title(['Atom number ' num2str(n) '/' num2str(size(obj.phi,2)) ' - Imaginary']); end - end - + end function movie(obj) %Movie of the basis for i=1:size(obj.phi,2)