Timing and mouse question
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hi guys Can you direct me with the following question? Greatly appreciated for you help.
Open and hold a figure in the unit aquare. Create random art by clicking with the mouse at different points inside the square and immediatetly a horizontal line and vertical line crossing at the point that has been clicked. Lines crossing at each point shaould have the same random width between 1 and 10(no need to be and integer) and the same random colour.
I have got the figure containing the unit square but from there on it's a bit of a haze for me unfortunately. Any ideas?
0 件のコメント
回答 (1 件)
Steven Lord
2018 年 4 月 23 日
0 投票
Since this sounds like a homework assignment and you haven't shown us the code you wrote so far, I'm only going to give you a hint. Take a look at the ginput function. If you show us more of what you've written and ask specific questions about where you've having trouble we may be able to offer further hints.
1 件のコメント
Philip Mavis`
2018 年 4 月 26 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!