I would like to create a flashing circle on a graph.
Any information to go about doing this?

4 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 9 月 25 日
Have you tried?
Adam Danz
Adam Danz 2019 年 10 月 2 日
@Norman Vyne, you just removed all comments and the question itself. Is that how you thank volunteers in this forum of taking time out of their day to help you?
Matt J
Matt J 2019 年 10 月 16 日
The orginal question was (paraphrased), "How do I put a blinking circle on a plot".
Rena Berman
Rena Berman 2019 年 10 月 28 日
(Answers Dev) Restored edit

サインインしてコメントする。

 採用された回答

Matt J
Matt J 2019 年 9 月 25 日

1 投票

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 件のコメント

Norman Vyne
Norman Vyne 2019 年 10 月 2 日
hcirc=drawcircle;
The code above is undefined
Matt J
Matt J 2019 年 10 月 2 日
Since you Accepted the answer, I assume you figured it out?
Norman Vyne
Norman Vyne 2019 年 10 月 2 日
Actually I am not entirely sure why an error pops up.
Matt J
Matt J 2019 年 10 月 2 日
編集済み: Matt J 2019 年 10 月 2 日
The optimal thing would be to upgrade to a version of Matlab which provides drawcircle. If you can't upgrade, you can make your own with patch,
function h=drawcircle(center,radius)
t=0:0.1:360;
x=radius*cosd(t)+center(1);
y=radius*sind(t)+center(2);
h=patch(x,y,'red');
end
Norman Vyne
Norman Vyne 2019 年 10 月 2 日
Not enough input arguments in line 4.
Matt J
Matt J 2019 年 10 月 2 日
You should provide whatever arguments you have omitted in line 4.
Adam Danz
Adam Danz 2019 年 10 月 2 日
編集済み: Adam Danz 2019 年 10 月 2 日
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 2019 年 10 月 2 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

タグ

質問済み:

2019 年 9 月 25 日

コメント済み:

2019 年 10 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by