ans = 
Why Doesn't "clear all" Clear the Assumptions from the Symbolic Engine?
이전 댓글 표시
According to the doc page assumptions
- To clear all objects in the MATLAB workspace and close the Symbolic Math Toolbox™ engine associated with the MATLAB workspace resetting all its assumptions, use this command
- clear all
Comment: I think the doc page would be clearer if that clause replaced "resetting" with "clearing".
But
syms x
assume(x < 1)
assumptions
clear all
assumptions
I'm quite certain that in previous versions (like 2022a?) the command "clear all" did clear the assumptions from the engine.
Is this a relatively-newly-introduced bug or am I misremembering/misunderstanding the situation?
Answers is running 2024b, I see the same behavior on 2024a.
댓글 수: 16
Paul
2024년 9월 22일
Animesh
2024년 9월 22일
I'm using MATLAB R2024a, but I am encountering the issue in R2024b, as mentioned.
Sam Chak
2024년 9월 22일
At the moment, the workaround of dealing with the issue is to clear the assumptions using the 'assume()' command.

Sam Chak
2024년 9월 22일
Hi @Paul
The first screenshot was taken using Answers running R2024b. The second screenshot was taken using the basic version of MATLAB Online, which includes the Symbolic Math Toolbox. The "persistant assumptions after clear all" issue has not been filed in the Bug Reports. I hope MathWorks will address it in R2024b Update 1.
Paul
2024년 9월 22일
Paul
2024년 9월 23일
Rena Berman
2024년 9월 23일
@Paul, I will forward this on.
Tushal Desai
2024년 9월 23일
FYI, we are investigating the issue in Answers where the symbolic outputs appear when editing but are not rendering when viewing the submitted post. I will post an update here when that is fixed in Answers.
Sam Chak
2024년 9월 23일
Thank you, @Paul, on the method for clearing all of the assumptions. Also thank @Rena Berman and @Tushal Desai for their attention to this matter.
Paul
2024년 9월 24일
Sam Chak
2024년 9월 24일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


