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.

 Risposta accettata

Star Strider
Star Strider il 11 Mar 2021

1 voto

See the documentation on the fill function. It describes everything you want to do, with example code.

2 Commenti

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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by