MATLAB: Undefined function or variable ‘xlim’ Error

errorMATLAB

Hi.
All of a sudden I get the following error when running a function
Undefined function or variable 'xlim'.
Error in ba (line 50)
xlim([100 500])
I am using R2019a and have tried prior recomendations i found on the forum like the following:
restoredefaultpath
rehash toolboxcache
but this did not work. If i remove the
xlim([100 500])
line (line 50 in function) or change xlim to ylim then it runs fine.
Any help would be appreciated.

Best Answer

run"which -all xlim"?
Related Question