1. Homepage
  2. Programming
  3. MEC104 Experimental, Computer Skills and Sustainability: MATLAB Assignment

MEC104 Experimental, Computer Skills and Sustainability: MATLAB Assignment

Engage in a Conversation
CHINAXJTLUMEC104 Computer Skills and SustainabilityMatlab

MEC104 Experimental, Computer Skills and Sustainability: MATLAB Assignment CourseNana.COM

A Suggestion on Information to be Presented for Each Question CourseNana.COM

For each problem, for example, Problem 4: CourseNana.COM

1. Equation derivations:
1) What equation do you use in your coding?
2) Also give all the coefficients, and source terms (e.g. external force/voltage), as necessary.
CourseNana.COM

2. What initial conditions, boundary conditions, time periods, domain size, etc., (computational conditions) are used? Provide schematic diagrams as necessary. CourseNana.COM

3. Main programme:
Provide the coding below, with necessary comments.
CourseNana.COM

4. Functions
1) Give information on what is this function used for, and what equation is solved, related to point 1.
2) Provide the coding below, with necessary comments.
CourseNana.COM

5. Results
1) Present the results required by each question, which can be numbers, data tables, figures, as appropriate.
2) Comments and analysis of the results:
CourseNana.COM

If required by a question, then you need to do this.
If not required, you can still do this if you wish, which is great!
If you think it is necessary to clarify your results and methods used, then please provide
CourseNana.COM

your comments.
6. Flow charts of your programme (if applicable).
CourseNana.COM

Problem 1 Matrix Operation (20 Marks)
P1-1 (5 Marks, 1 Mark for each small question)
CourseNana.COM

Type this matrix in MATLAB and use MATLAB to carry out the following instructions. CourseNana.COM

a) Create a vector v consisting of the elements in the third column of A.
b) Create a vector
w consisting of the elements in the second row of A.
c) Create a 4 x 3 array
B consisting of all elements in the second through fourth columns of A. d) Create a 3 x 4 array C consisting of all elements in the second through fourth rows of A.
e) Create a 2 x 3 array
D consisting of all elements in the first two rows and the last three columns of A. CourseNana.COM

P 1-2 (5 Marks, 1 Mark for each small question) CourseNana.COM

Consider the following arrays: CourseNana.COM

?=ln? CourseNana.COM

Write MATLAB expressions to do the following.
a) Select just the third row of
B.
b) Evaluate the sum of the second row of
B.
c) Multiply the second column of
B and the first column of A element by element.
d) Evaluate the maximum value in the vector resulting from element-by-element multiplication of the second column of
B with the first column of A. CourseNana.COM

e) Use element-by-element division to divide the first row of A by the first three elements of the third column of B. Evaluate the sum of the elements of the resulting vector. CourseNana.COM

P 1-3 (5 Marks) CourseNana.COM

A mass m is suspended by three cables attached at three points B, C, and D, as shown in Figure 1. Let T1, T2, and T3 be the tensions in the three cables AB, AC, and AD, respectively. If the mass m is stationary, the sum of the tension components in the x, in the y, and in the z directions must each be zero. This gives the following three equations: CourseNana.COM

? 3? ? 123 CourseNana.COM

−+=0 √35 √34 √42 CourseNana.COM

3? 4? 13 CourseNana.COM


CourseNana.COM

Figure 1. A mass suspended by three cables. CourseNana.COM

Determine T1, T2, and T3 in terms of an unspecified value of the weight mg. (Hints: you can assume mg = 1, and find the values of T1, T2 and T3, respectively, and the final expressions should be these values multiplied by mg.) CourseNana.COM

P 1-4 (5 Marks) CourseNana.COM

Engineers must be able to predict the rate of heat loss through a building wall to determine the heating system requirements. They do this by using the concept of thermal resistance R, which relates the heat flow rate q through a material to the temperature difference ? across the material: ? = ∆?/?. This relation is like the voltage-current relation for an electric resistor: ? = ?/?. So, the heat flow rate plays the role of electric current, and the temperature difference plays the role of the voltage difference. The SI unit for q is the watt (W), which is 1 joule/second (J/s). The wall shown in Figure 2 consists of four layers: an inner layer of plaster/lathe 10 mm thick, a layer of fiber glass insulation 125 mm thick, a layer of wood 60 mm thick, and an outer layer of brick 50 mm thick. If we assume that the inner and outer temperatures Ti and To have remained constant for some time, then the heat energy stored in the layers is constant, and thus the heat flow rate through each layer is the same. Applying conservation of energy gives the following equations. CourseNana.COM

?= 1(??)= 1(??)= 1(??)= 1(??) ?1 ? 1 ?2 1 2 ?3 2 3 ?4 3 ?  CourseNana.COM

The thermal resistance of a solid material is given by ? = ?/?, where D is the material CourseNana.COM

thickness and k is the material’s thermal conductivity. For the given materials, the resistances CourseNana.COM

for a wall area of 1 m2 are ?1 = 0.036, ?2 = 4.01, ?3 = 0.408, and ?4 = 0.038 K/W. CourseNana.COM

Suppose that ? = 20 °C and ? = −10 °C. Find the other three temperatures and the heat CourseNana.COM

2 loss rate q, in watts. Also, compute the heat loss rate if the wall’s area is 10 m . CourseNana.COM

page6image63089216 CourseNana.COM

Figure 2. The schematic for P1-4. 6 / 10 CourseNana.COM

Problem 2 (20 Marks) CourseNana.COM

P2-1 (10 Marks, 7 Marks for programming and 3 Marks for displaying results) CourseNana.COM

The equation of motion for a pendulum whose base is accelerating horizontally with an acceleration a(t) is CourseNana.COM

?? + ? sin ? = ?(?) cos ? CourseNana.COM

Supposethat ?=9.81?/? , ?=1?,and ?(0)=0.Plot ?(?) for 0≤?≤10? forthe CourseNana.COM

following three cases:
a) The acceleration is constant:
? = 5 ?/? , and ?(0) = 0.5 ???. CourseNana.COM

b) The acceleration is constant: ? = 5 ?/? , and ?(0) = 3 ???. 2 CourseNana.COM

c) The acceleration is linear with time: ? = 0.5? ?/? , and ?(0) = 3 ???. CourseNana.COM

P2-2 (10 Marks, 7 Marks for programming and 3 Marks for displaying results) CourseNana.COM

The following equation describes the motion of a certain mass connected to a spring, with no friction CourseNana.COM

3 + 75? = ?(?)
where ?(?) is an applied force. Suppose the applied force is sinusoidal with a frequency of CourseNana.COM

? ???/? and an amplitude of 10 N: ?(?) = 10 sin(??). CourseNana.COM

Suppose that the initial conditions are ?(0) = (0) = 0. Plot ?(?) for 0 ≤ ? ≤ 20 ?. Do this for the following three cases. Compare the results of each case:
a)
?=1???/?
b) ?=5???/? CourseNana.COM

c) ?=10???/? CourseNana.COM

Problem 3 (20 Marks, 5 Marks for a) and 15 Marks for b)) CourseNana.COM

The equations for an armature-controlled dc motor (Figure 3) are the following. The Motor’s current is i and its rotational velocity is ?. CourseNana.COM

? ?? = −????? + ?(?) ?? CourseNana.COM

? ?? = ????? ?? CourseNana.COM

where L, R, and J are the motor’s inductance, resistance, and inertia; KT and Ke are the torque constant and back emf constant; c is a viscous damping constant; and ?(?) is the applied voltage. CourseNana.COM

Usethevalues ?=0.8Ω, ?=0.003?, ?? =0.05??/?, ?? =0.05??/???, ?=0 −5 2 CourseNana.COM

and ?=8×10 ??? .
a) Suppose the applied voltage is 20 V. Plot the motor’s speed and current versus time. Choose
CourseNana.COM

the simulation time period large enough to show the motor’s speed becoming constant. b) Suppose the applied voltage is trapezoidal as given below. CourseNana.COM

400? 0 ≤ ? < 0.05 20 0.05 ≤ ? ≤ 0.2 −400(?−0.2)+20 0.2<?≤0.25 CourseNana.COM

0 ? > 0.25 Plotthemotor’sspeedversustimefor 0≤?≤0.3?.Alsoplottheappliedvoltageversustime. CourseNana.COM

How well does the motor speed follow a trapezoidal profile? CourseNana.COM

For both a) and b), the initial conditions are ?(0) = 0 and ?(0) = 0. You can use either MATLAB programming (read Tutorial 1 for solving ODEs) or Simulink (read Lecture 3). CourseNana.COM

Figure 3. The armature-controlled dc motor of Problem 3. 8 / 10 CourseNana.COM

?(?) = { CourseNana.COM


CourseNana.COM

Problem 4 (25 Marks, with 1) 10 Marks, 2) 15 Marks) CourseNana.COM

Consider a circuit system as shown in Figure 4. CourseNana.COM


CourseNana.COM

Figure 4. A circuit with multiple resistors and inductors for Problem 4. CourseNana.COM

Question: CourseNana.COM

1) Derive the equations for ?1(?) and ??(?) for all ?. 2) Obtain the plots of ?1(?) and ??(?) for all ?. CourseNana.COM

Problem 5 (15 Marks, with 1) 5 Marks, 2) 5 Marks, 3) 5 Marks) CourseNana.COM

A dynamic structure diagram of a control system is shown in Figure 5: CourseNana.COM

Figure 5. The dynamic control system for Problem 5. CourseNana.COM

Where The input is taken as the step input and ? is the deadband value of the magnetic loop property. CourseNana.COM

Question:
1) Use MATLAB/Simulink to establish the system.
2) Analyze the influence of
?1 value on the output performance of the system.
3) Analyze the influence of input amplitude on the output performance of the system.
CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
CHINA代写,XJTLU代写,MEC104代写, Computer Skills and Sustainability代写,Matlab代写,CHINA代编,XJTLU代编,MEC104代编, Computer Skills and Sustainability代编,Matlab代编,CHINA代考,XJTLU代考,MEC104代考, Computer Skills and Sustainability代考,Matlab代考,CHINAhelp,XJTLUhelp,MEC104help, Computer Skills and Sustainabilityhelp,Matlabhelp,CHINA作业代写,XJTLU作业代写,MEC104作业代写, Computer Skills and Sustainability作业代写,Matlab作业代写,CHINA编程代写,XJTLU编程代写,MEC104编程代写, Computer Skills and Sustainability编程代写,Matlab编程代写,CHINAprogramming help,XJTLUprogramming help,MEC104programming help, Computer Skills and Sustainabilityprogramming help,Matlabprogramming help,CHINAassignment help,XJTLUassignment help,MEC104assignment help, Computer Skills and Sustainabilityassignment help,Matlabassignment help,CHINAsolution,XJTLUsolution,MEC104solution, Computer Skills and Sustainabilitysolution,Matlabsolution,