To whom it may concern,
I need to create stimuli to present to subjects, for a psychological experiment.
These stimuli are in the form of shapes. How do I go about creating shapes in MATLAB (with the dimensions specified in cm); and then, filling those shapes with specific colours in accordance to the RGB system? They are, specifically, ovals and squares, respectively.
Finally, I would want to save those (created) images on my MacBook
Any help (and guidance) will be gratefully received.

 Accepted Answer

Star Strider
Star Strider on 11 Mar 2021
See the documentation on the fill function. It describes everything you want to do, with example code.

2 Comments

Thank you, Star Strider!
It gave me all the information I needed.
best wishes
Matthew A
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!