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: t_test.m
    path of file: ./repos/BrainStat/brainstat_matlab/stats/@SLM
    
    the code of the file until where you have to start completion: function t_test(obj)


[n,p]=size(obj.X);
obj.contrast=double(obj.contrast);

    
function t_test(obj)


[n,p]=size(obj.X);
obj.contrast=double(obj.contrast);
pinvX=pinv(obj.X);
if length(obj.contrast)<=p
    c=[obj.contrast zeros(1,p-length(obj.contrast))]';
    if sum((null(obj.X)'*c).^2)/sum(c.^2)>eps
        error('Contrast is not estimable :-(');
        return
    end