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
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
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 件のコメント
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
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!