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 件のコメント

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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by