Pan does not work

3 views (last 30 days)
Pauline Dumont
Pauline Dumont on 18 Apr 2019
Commented: Pauline Dumont on 18 Apr 2019
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!

Accepted Answer

Steven Lord
Steven Lord on 18 Apr 2019
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 Comment
Pauline Dumont
Pauline Dumont on 18 Apr 2019
Hi Steven,
You are right, thank you very much for your help!

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!