Create a flashing circle on a plot

5 vues (au cours des 30 derniers jours)
Norman Vyne
Norman Vyne le 25 Sep 2019
Commenté : Rena Berman le 28 Oct 2019
I would like to create a flashing circle on a graph.
Any information to go about doing this?
  4 commentaires
Matt J
Matt J le 16 Oct 2019
The orginal question was (paraphrased), "How do I put a blinking circle on a plot".
Rena Berman
Rena Berman le 28 Oct 2019
(Answers Dev) Restored edit

Connectez-vous pour commenter.

Réponse acceptée

Matt J
Matt J le 25 Sep 2019
Something like this is a possibility:
plot(1:5);
hcirc=drawcircle;
while 1
hcirc.Visible='on';
pause(0.2);
hcirc.Visible='off';
pause(0.2);
end
  8 commentaires
Adam Danz
Adam Danz le 2 Oct 2019
Modifié(e) : Adam Danz le 2 Oct 2019
Did you enter a "center" containing 2 values and a radius? It's difficult to help you when we don't have any information about what might be causing the problem. What's line 4? What inputs did you provide?
Norman Vyne
Norman Vyne le 2 Oct 2019
I inputted the exact code above and clicked run, then I got an error stating that there is not enough input information in the "x=" part of the function.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by