1 code programs using matlab 2 apply matlab and simulink to


Introduction

This coursework is to be carried out individually. It includes some questions and is designed to meet the Learning Outcomes of this module, as presented in the module proforma, i.e.

Learning Outcomes:

1. Code programs using MATLAB

2. Apply MATLAB and Simulink to aid the analysis of engineering problems

An LRC circuit is shown in Fig.1.

1322_LRC circuit.jpg

Fig.1 the LRC circuit

The variables and physical parameters are given as follows:

The variables and physical parameters are given as follows:

u(t)        ---           input voltage signal (V)

y(t)        ---           output voltage signal (V)

i(t)         ---           current signal (A)

R1          ---           resistor 1,            R1  = 10 + N/100 (W)

R2          ---           resistor 2,            R2  = 100 - N/100 (W)

L            ---           inductor,              L = 0.2 (H)

C            ---           capacitor,            C = 0.001 (F)

where N is the last two digits of your student number. For example, if your student number is 234567, then N = 67.

1. With u(t) as the input, i(t) and y(t) as outputs, derive a system mathematical model with two first-order differential equations.

2. Simulate the circuit in Fig.1 using the following input,

703_Simulate the circuit.jpg

with the zero initial values of the current going through the inductor and the voltage on the capacitor. Simulate the system using the fourth order Runge-Kutta method for 0.6 seconds and obtain the outputs, choosing the time step h = 0.001 sec. The task includes

(a). Code an M-file to simulate the system. The physical parameters should be included in the M-file and are given the numerical values at the beginning.

(i) Incorrectness in using the Runge-Kutta method,

(ii) Incorrectness in using input u(t),

(iii) Other mistakes,

(b). Draw three figures in one screen with u(t) at the top, i(t) in the middle and y(t) at the bottom, to show the correct simulation results.

3. Report Presentation

  • Necessary explanations should be given in the M-file.
  • All text should be typed and Microsoft Equation should be used for math expressions.
  • All figures should include title, labels and legends as appropriate.
  • All M-files and any functions that coded by you should be displayed.
  • An introduction, discussions and conclusions should be included in the assignment.
  • The assignment should be written logically, clearly and completely.

Solution Preview :

Prepared by a verified Expert
Electrical Engineering: 1 code programs using matlab 2 apply matlab and simulink to
Reference No:- TGS01153214

Now Priced at $45 (50% Discount)

Recommended (92%)

Rated (4.4/5)

A

Anonymous user

5/14/2016 5:28:38 AM

The task is all about simulating the circuit as per accordance to the given input and information provided. By having zero initial values of the current going via the inductor and the voltage on the capacitor, simulate the system by employing the fourth order Runge-Kutta method for 0.6 seconds and get the outputs, selecting the time step h = 0.001 sec. The task comprises: 1) Code the M-file to simulate the system. The physical parameters must be comprised in the M-file and are provided the numerical values at the starting. a) Incorrectness in employing the Runge-Kutta method b) Incorrectness in using input u(t) c) Other mistakes 2) Sketch three figures in one screen having u(t) at the top, i(t) in the middle and y(t) at the bottom, to exhibit the correct simulation outcomes.