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.

 Respuesta aceptada

Star Strider
Star Strider el 11 de Mzo. de 2021

1 voto

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

2 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 11 de Mzo. de 2021

Comentada:

el 14 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by