I need some help with a small mathlab project

1 次查看(过去 30 天)
Hello, i've never worked with matlab before... i have 0 knowledge of it and i need to make a project in it. I need to make a program that draws a face, and it chages emotions when i press a button , and also chages skin color ( white,black,yellow) ... i'm in the last year and i have a lot of work to do , thats why i've posted here. If someone is kind to help me i'd very much apriciate it . Thank you !!!
  1 个评论
Steven Lord
Steven Lord 2016-12-13
If you post what you've done to try to solve this problem and ask a specific question you may receive some suggestions about how to move forward.
If you're not sure where to begin with MATLAB, see the resources for learning MATLAB in this Answer and this Answer.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2016-12-13
编辑:Image Analyst 2016-12-13
How about you use menu() to let the user select the emotion. Then you pre-create images, like draw them in Photoshop or collect them off the web. Then depending on what button they click, you use imread() and imshow() to display the chosen emotion image?
button = menu('Pick emotion', 'Happy', 'Sad');
if button == 1
img = imread('happy.png');
elseif button == 2
img = imread('sad.png');
end
imshow(img);
  2 个评论
Anghel Alexandru
Anghel Alexandru 2016-12-13
That would be great and easier to do if i just create de images, but i think the images need to be drawn by the software, like a simple smiley face than a frowny face and so on . :(
Image Analyst
Image Analyst 2016-12-14
Then you need section 5 of the FAQ where it shows you how to draw simple shapes like ellipses and arcs. http://matlab.wikia.com/wiki/FAQ#toc

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Just for fun 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by