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.

 采纳的回答

Star Strider
Star Strider 2021-3-11

1 个投票

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

2 个评论

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!
.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Timing and presenting 2D and 3D stimuli 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by