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: TestDft.m
    path of file: ./repos/mexopencv/test/unit_tests
    
    the code of the file until where you have to start completion: classdef TestDft
    %TestDft

    methods (Static)
        function test_1d_real
            % 1x100 real signal
            x = sin(linspace(0, 6*pi, 100));

            % 1D DFT
            y = cv.dft(x);
            validateattributes(y, {class(x)}, {'vector', 'numel',numel(x)});

            % inverse transform
      
    
function test_ccs_1d
            % real 1D vector
            if true
                N = 100; % even case
            else
                N = 101; % odd case
            end
            x = sin(linspace(0, 6*pi, N));
            x = x + randn(size(x));

            % 1D DFT (packed CCS format)
            y = cv.dft(x);

            % un-pack CCS into full complex array (both even/odd length cases)
            if rem(N, 2) == 0
                dc = y(1);           % DC component
                pos = y(2:2:end