Borrar filtros
Borrar filtros

Why am I getting these plot warnings?

20 visualizaciones (últimos 30 días)
Ellen Braden
Ellen Braden el 31 de Oct. de 2018
Comentada: Boian Alexandrov el 27 de Dic. de 2019
I am trying to do some simple plotting, plot(diff), and I keep getting these warnings Warning: Error updating Button. Not enough input arguments. at least 50 times before stopping. What Button is it talking about and how do I turn off these warnings?
  2 comentarios
Walter Roberson
Walter Roberson el 31 de Oct. de 2018
Please show your code.
the cyclist
the cyclist el 31 de Oct. de 2018
Editada: the cyclist el 31 de Oct. de 2018
I would modify Walter's suggestion slightly, to recommend that you try to simplify your code down to the smallest version that exhibits the problem, and post that code.
In my experience, that process itself often exposes the bug.

Iniciar sesión para comentar.

Respuestas (4)

Ellen Braden
Ellen Braden el 31 de Oct. de 2018
diff is a difference between two arrays, diff = posA(:,1) - posB(:,1). posA and posB are the same size. Then I plot diff, plot(diff). That's it.
  1 comentario
Walter Roberson
Walter Roberson el 31 de Oct. de 2018
So your code just looks like loading some values into posA and posB, then
diff = posA(:,1) - posB(:,1);
plot(diff)
??
Note: it is not recommended to use diff as the name of a variable, as it is the name of a commonly used function.

Iniciar sesión para comentar.


Ellen Braden
Ellen Braden el 1 de Nov. de 2018
Even if I change it to posdiff = posA(:,1)-posB(:,1), plot(posdiff) I get the same warnings

Robert Barretto
Robert Barretto el 22 de Nov. de 2018
I have the same issue with Matlab 2018b. Luckily I can confirm that my code on Matlab 2016b does not produce this problem.
This is true on both Mac and PC.
Capture.PNG
  9 comentarios
John
John el 20 de Ag. de 2019
Thank-you Walter Roberson! I suddenly had the same problem. Something crept into my extensive paths. Now I have to reverse engineer and find the culprit in my paths.
Try
restoredefaultpath;
rehash toolboxcache
Boian Alexandrov
Boian Alexandrov el 27 de Dic. de 2019
It worked!

Iniciar sesión para comentar.


Stijn Helsen
Stijn Helsen el 26 de Ag. de 2019
I had the same problem, and the provided solution solved my problem.
Thank you!!

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by