SIM1004编程辅导 、讲解 MATLAB程序
            
                SIM1004 FUNDAMENTALS OF COMPUTING 
 
Page | 1 
 
ANIMATED IMAGE 
• Please submit your MATLAB files before 2300 on 17 January 2025 (Friday). 
• Students who fail to submit the assignment within the specified time frame will receive the following 
penalties: late for up to 2 hours – 5 marks deducted from the final mark; late for up to 5 hours – 10 
marks deducted from the final mark; more than 5 hours – no mark will be given. 
• If caught cheating, you will get a 0 mark on this assignment. 
• Using of AI tool such as ChatGPT is strictly prohibited. 0 mark will be given if you get caught. 
 
Overview 
In this assignment, you will create two simple animated images in MATLAB. The images are: 
• A Sad-Happy Face 
• A Moving Vehicle 
You may refer to examples of similar images provided in Spectrum. However, you are encouraged to 
design your own animated images while adhering to the main concepts. 
Once the images are created, the user should be able to type either ‘Happy face’ or ‘Moving vehicle’ to 
display the corresponding animated image. 
 
Important Notes 
• You are not allowed to use any MATLAB functions or commands other than those covered in the 
lecture slides and tutorial questions unless explicitly permitted in this assignment. 
• Violation of this rule will result in a deduction of marks. 
 
Submission Guidelines 
Ensure your code is well-documented and includes clear comments explaining each step of the process. 
Your submission should be zero error and able to display the animations based on the user’s input. 
 
 SIM1004 FUNDAMENTALS OF COMPUTING 
 
Page | 2 
 
APPENDIX 
Circle Equation 
A circle equation is described by 
where    and    are the point coordinates on the circle line.     
 and     
 are the coordinates of the center of 
the circle.    is the radius of the circle and    is the circle angle ranging from 0 to 2  . 
   is the semi-major axis,    is the semi-minor axis, (  0,   0
) is the center coordinates and    is the rotation 
angle. 
 
To plot an ellipse in MATLAB, use function fimplicit. 
            
         
        
    
        
        
            
                - QQ:99515681 
- 邮箱:99515681@qq.com 
- 工作时间:8:00-21:00 
- 微信:codinghelp
 
     
    
    
    
 
        
        
        
    
        
            联系我们 - QQ: 99515681 微信:codinghelp
        
 
        
        
            程序辅导网!