def poly_export(poly):
    """Saves parts of a polytope as a dictionary for export to MATLAB.

    @param poly: L{Polytope} that will be exported.
    @return output: dictionary containing fields of poly
    """
    output = {}
    if poly is not None:
        output['A'] = poly.A
        output['b'] = poly.b
    return output
