diff util/classes/@dictionary/plotcumcoherence.m @ 160:e3035d45d014 danieleb

Added support classes
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Wed, 31 Aug 2011 10:53:10 +0100
parents
children 68fb71aa5339
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/classes/@dictionary/plotcumcoherence.m	Wed Aug 31 10:53:10 2011 +0100
@@ -0,0 +1,10 @@
+function plotcumcoherence(obj)
+mu = cumcoherence(obj);
+v = conv(mu,[1 1]);
+ind = find(v<1, 1, 'last');
+plot(1:obj.len,mu);
+hold on
+line([ind ind], [min(mu) max(mu)],'Color','red');
+title(['Minimum allowed sparsity (Tanner):' num2str(ind/obj.len)]);
+grid on
+end
\ No newline at end of file