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!