def METHOD_NAME(with_D, with_E):
    matrices = _build_matrices_lti(with_D, with_E)
    assert all(np.issubdtype(mat.dtype, np.integer) for mat in matrices if mat is not None)
    lti = LTIModel.from_matrices(*matrices)
    with tempfile.TemporaryDirectory() as tmpdirname:
        file_name = os.path.join(tmpdirname, 'lti')
        lti.to_mat_file(file_name)
        lti2 = LTIModel.from_mat_file(file_name)
    matrices2 = lti2.to_matrices()
    _test_matrices_lti(*matrices, *matrices2, with_D, with_E)
    assert all(np.issubdtype(mat.dtype, np.floating) for mat in matrices2 if mat is not None)