Timing and mouse question
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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?
Réponses (1)
Steven Lord
le 23 Avr 2018
0 votes
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 commentaire
Philip Mavis`
le 26 Avr 2018
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!