max函数无法比较sym符号运算的大小,尽管已设置为正数。
이전 댓글 표시
这是测试代码:
>> a=sym('a','positive');
>> b=sym('b','positive');
>> max(a,a+b)
ans =
max([a, a + b], [], 2, 'omitnan', false)
请教,该怎么解决这个问题呢?虽然从数学上可能确实无法比较。
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!