% Build the synthesis matrix for the canonical dual frame
% function dD = candualframe(D)
%  
% inputs : D .......... the elements of the analysis frame (columnwise) 
%                       (n x K)
%
% output: dD ......... the matrix of the canonical dual frame of D
%
% usage:  dD = candualframe(D)
%
% test:   
%    D1 = [ 1 0 0.5 
%           0 1 0.5];
%    dD1 = candualframe(D1);
%
% date: 11/05/2007
%
% notes : Very simple code! This file is only provided for convenience.
%         The elements of the dual frame are the columns of dD.
% 
% Author:  XXL .. Peter Balazs, contact: Peter.Balazs@oeaw.ac.at
%
% Copyright : (c) Acoustics Research Institute, Austrian Academy of
%              Science
%              http://www.kfs.oeaw.ac.at
function dD = candualframe(D)
dD = pinv(D)';