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. 

### 电力电子基础知识 #### 电路建模 电力电子仿真中的电路建模涉及创建电力电子系统的数学表示。这包括定义基本元件的行为,如电压源、电流源、电感器、电容器、二极管、晶闸管以及金属氧化物场效应晶体管 (MOSFET)[^1]。 #### 控制策略 为了有效管理这些复杂系统,在电力电子领域内开发了多种控制方法。常见的技术有脉宽调制(PWM),比例积分微分控制器(PID) 和滞环比较控制等方案被广泛应用于调节输出特性并优化整体表现。 #### 仿真分析 通过计算机辅助工具可以模拟实际运行条件下的行为模式;评估瞬态反应速度、长期稳定性指标还有转换效率等方面的表现情况。MATLAB/Simulink 是一种流行的选择用于构建虚拟原型来测试新概念而不必担心物理损害风险。 关于 P 型半导体材料,这类物质内部存在较多正电荷载流子——即所谓的“空穴”,这是因为相对于纯净硅而言掺杂了一些接受体杂质原子从而减少了自由移动的负电荷数量[^2]。 ```matlab % 创建简单的直流电源和电阻串联电路模型 model = 'simple_circuit'; new_system(model); add_block('simulink/Sources/DC Voltage Source', [model '/Vsource']); add_block('simulink/Electrical Elements/Resistor', [model '/Rload']); connect_lines([model '/Vsource'], [model '/Rload']); set_param([model '/Vsource'], 'Value', '10'); % 设置电压值为10伏特 set_param([model '/Rload'], 'Resistance', '5'); % 设定负载阻抗为5欧姆 save_system(model); % 存储所建立好的Simulink文件 ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值