Pan does not work

2 次查看(过去 30 天)
Pauline Dumont
Pauline Dumont 2019-4-18
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!

采纳的回答

Steven Lord
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.
  1 个评论
Pauline Dumont
Pauline Dumont 2019-4-18
Hi Steven,
You are right, thank you very much for your help!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by