Watch this Author's files
I just get it work.
Sorry for the 4 stars. It should be a five stars.
It seems your functions can only accept A which is square matrix? Do I miss anything or this function will not work for overcomplete frames?