--- a/frames/franalasso.m
+++ b/frames/franalasso.m
@@ -90,6 +90,7 @@
 %   basis coefficients (BCR algorithm)
 
 % Accelerate frame, we will need it repeatedly
+L = numel(x);
 F=frameaccel(F,L);
 L=F.L;