필터 지우기
필터 지우기

MATLAB R2018a hangs on busy when performing certain tasks

조회 수: 1 (최근 30일)
Francesco Brozzu
Francesco Brozzu 2018년 5월 3일
댓글: Francesco Brozzu 2018년 5월 3일
I'm trying to run a script that computes a function at a specific time instant which is given by the value inside a time vector in this way:
w= @(t) heaviside(t); Tmax=1e-1; dt=1e-3; time = 0:dt:Tmax; w(time(k))
However once the script gets to the w(time(k)) part MATLAB gets stuck on busy, the interface still responds but I am unable to perform any command.
The same issue happens when trying to restore a MATLAB workspace.
I already tried to reinstall MATLAB from scratch but I still get the same issue.
  댓글 수: 3
Walter Roberson
Walter Roberson 2018년 5월 3일
Is this Windows 10 with the 2018 spring update?
Francesco Brozzu
Francesco Brozzu 2018년 5월 3일
k is an integer, I'm doing this in a for loop. I left MATLAB on the busy state for 10 minutes and it got unstuck with this error when computing heaviside(0):
Function call 'heaviside(0)' yields a symbolic object. Use 'sympref("HeavisideAtOrigin", v)' with some
numeric value v to change 'heaviside(0)' to v.
Also yes I just updated Windows 10 to the spring update.

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

채택된 답변

Walter Roberson
Walter Roberson 2018년 5월 3일
  댓글 수: 1
Francesco Brozzu
Francesco Brozzu 2018년 5월 3일
That was the issue I was experiencing, installing Update 1 fixed symbolic math toolbox. The problem with importing the workspace was due to the fact that the workspace had symbolic variables.
Thank you!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by