Pan does not work
2 次查看(过去 30 天)
显示 更早的评论
Hello,
Since I installed Matlab 2016b, the "pan" function does not work on figures.
When I click on the pan button, I have the following error message:
Error using putdowntext (line 181)
Simulink model 'pan' was called with incorrect number of arguments
Error while evaluating ToggleTool ClickedCallback
For example, I just did the following:
a = 0:1:100;
plot(a)
Then I clicked on the "pan" button and I had the error message above. It happens in Matlab and Simulink, on all figures.
Another issue probably linked to this: when I open a figure saved from Simulink, I have the following error warnings:
Warning: While loading an object of class 'proplistener':
No constructor 'event.proplistener' with matching signature found.
> In matlab.graphics.internal.figfile.FigFile/read (line 31)
In matlab.graphics.internal.figfile.FigFile
In loadFigure (line 31)
In openfig>localOpenFigure (line 69)
In openfig (line 40)
In open (line 159)
In uiopen (line 167)
Warning: During load:
An invalid default object has been detected while loading a heterogeneous array of class
event.proplistener. An empty array of class event.proplistener will be returned.
> In matlab.graphics.internal.figfile.FigFile/read (line 31)
In matlab.graphics.internal.figfile.FigFile
In loadFigure (line 31)
In openfig>localOpenFigure (line 69)
In openfig (line 40)
In open (line 159)
In uiopen (line 167)
I attached a snapshot of the error messages in Matlab.
Can someone help?
Thank you!
0 个评论
采纳的回答
Steven Lord
2019-4-18
Run this command:
which -all pan
From the error message it sounds like you've created a Simulink model named pan that is taking precedence over the built-in pan function. Rename the model.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!