function Result = getFromMatrixFile(Matrix,varargin)

Result = Matrix;
Error.Code    = 0;
Error.Message = 'No error';

pointer = 1;
while true
    [FilterSet,Error,next] = getNextFilterSet(pointer,varargin);
    if FilterSet.Nr > 0
        Result = extractInfoFromBatchresults(Result,FilterSet);
    end
    if next == -1
        break
    else
        pointer = next;
    end
end

