필터 지우기
필터 지우기

Boolean simplify fails for a simple expression

조회 수: 1 (최근 30일)
John Smith
John Smith 2018년 5월 6일
댓글: Walter Roberson 2018년 5월 7일
Fails:
>> syms x y z
>> simplify(x & xor(y, z))
Error using mupadengine/feval (line 163)
The first argument must be a condition.
Error in sym/simplify (line 58)
rSym = feval(symengine, 'simplify', s,...
However, when xor is in root:
>> simplify(xor(x & y, z))
ans =
x & y xor z
  댓글 수: 3
John Smith
John Smith 2018년 5월 7일
R2015a. Suppose I should update MATLAB or implement xor with "and", "or" and "not". I was hoping for something with lesser impact on the workflow, like patching the toolbox script, but thanks anyway!
Walter Roberson
Walter Roberson 2018년 5월 7일
Unfortunately there does not appear to be any simple patch in that release.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Utilities for the Solver에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by