You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ClockwisetoWENS.m
    path of file: ./repos/CS_MoCo_LAB/reconstruction/matlab/CS_LAB_matlab/utils/utils_TRAFO/CurveLab-2.1.3/fdct_usfft_matlab/Utilities
    
    the code of the file until where you have to start completion: function D = ClockwisetoWENS(Cs);
% WENStoClockwise: Converts a data structure where wedge
%                  start from top left wedge and increasing in a
%                  clockwise fashion, into another structure with
%                  orientations organized by cardinal points. 

    
function D = ClockwisetoWENS(Cs);
% WENStoClockwise: Converts a data structure where wedge
%                  start from top left wedge and increasing in a
%                  clockwise fashion, into another structure with
%                  orientations organized by cardinal points. 
%
% See Also
%   SeparateAngles, Adj_DetailCurveCoeff, WENStoClockwise
     
  
    nw = length(Cs)/4;    [nl,ns] = size(Cs{1});
    D = zeros(4,nw,nl,ns);
    cnt = 1;
    for w=1:nw
      D(3,w,:,:) = Cs{cnt}; cnt = cnt+1;
    end