function tixiSwapElements(handle, element1Path, element2Path)
    % this file was automatically generated from tixi.h on 2025-09-30

    if (ischar(handle))
        error('Invalid type of argument "handle"');
    end

    if not(ischar(element1Path))
        error('Invalid type of argument "element1Path"');
    end

    if not(ischar(element2Path))
        error('Invalid type of argument "element2Path"');
    end

    try
        tixi3_matlab('tixiSwapElements', handle, element1Path, element2Path);
    catch err
        error(err.message)
    end
end

