
function res = cols(M)

    dims = size(M);
    res = dims(2);

end
