bouncing word screensaver as a graphic program

hi, i'm asked to write a matlab program that asks the user to input a word and creates a screensaver that has that word bouncing around. can anyone tell me how can i do that please? thanks all.

回答 (2 件)

Geoff Hayes
Geoff Hayes 2016 年 5 月 21 日

1 投票

Hugh - since this is your homework, we can only give hints. To prompt the user for a string (in your case, a word) use input. Then to display this word on an axes, use text. You will need to define some sort of path (given your example image, it seems that the text will move in a straight line (at some angle) until it hits the edge and then bounce in a new direction) which will update the position of this text object.

2 件のコメント

Hugh Le
Hugh Le 2016 年 5 月 26 日
can you describe me in more detail how can i make things moving on graphs in matlab, please? i did couple of researches and they told me to use the loop to make the change in positions of the word to create movement, but i need more detail and examples, can you give me any, please? thank you.
Geoff Hayes
Geoff Hayes 2016 年 5 月 26 日
Hugh - again, since this is homework, all we can give out are hints. How are you defining your path for the text? How do you choose its direction and speed so that you can get the (x,y) coordinates of the text object?

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

Jordan Crombie
Jordan Crombie 2018 年 5 月 1 日

0 投票

Hey man, ive been given the same question, was wondering if you could give me some tips on hjow you did it. Cheers, Jordan

2 件のコメント

joshua Knight
joshua Knight 2018 年 5 月 1 日

ahahah are you at Griffith???

Max Sayers
Max Sayers 2018 年 5 月 3 日
quick math

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

カテゴリ

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

製品

質問済み:

2016 年 5 月 21 日

コメント済み:

2018 年 5 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by