How can I generate objects on clicking mouse?

I want to design a game in which on clicking blocks must appear. I wanted to ask what are the suitable functions that can be used. Thanks

Answers (1)

2 Comments

Thanks but I cannot access it for some reason
To access the same documentation from within matlab, type:
web(fullfile(docroot, 'matlab/creating_plots/capturing-mouse-clicks.html'))

This question is closed.

Asked:

Ali
on 27 Nov 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!