SIM1004 FUNDAMENTALS OF COMPUTING

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. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值