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!

 Akzeptierte Antwort

Steven Lord
Steven Lord am 18 Apr. 2019

0 Stimmen

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 Kommentar

Pauline Dumont
Pauline Dumont am 18 Apr. 2019
Hi Steven,
You are right, thank you very much for your help!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2016b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by