function out = calculate_matrix()
    % initialise a matrix of any size
    mat = zeros(400);
    dims = size(mat);
    width = dims(1);
    height = dims(2);

    dx = 0.01;
    dy = 0.01;

    startx = -2.5;
    starty = -2;
    % loop over stuff and fill the matrix
    for x = 1:width
        for y = 1:height
            % calculate the position
            xpos = startx + (x*dx);
            ypos = starty + (y*dy);
            complex = xpos + ypos * i;

           
            % write to the matrix
            mat(x, y) = learning(4, complex, 75);
        end
    end
    out = mat;
end