Create the following matrix by assigning vectors with constant spacing to the rows (use the linspace command for the third row). Do not type individual elements explicitly.
A =
1.0000 2.0000 3.0000 4.0000 5.0000 6.0000
7.0000 6.0000 5.0000 4.0000 3.0000 2.0000
2.0000 3.1667 4.3333 5.5000 6.6667 9.0000
Solve the following system of six linear equations on MatLAB:
2a-4b+5c-3.5d +1.8 e + 4 f= 52.52
-1.5 a + 3b +4c-d-2e +5f= -21.1
5a+b-6c+3d -2e +2 f = -27.6
1.2a 2b +3c+4d-e+4f=9.16
4a+b-2c-3d-4e+1.5 f= - 17.9
3a+b-c+4d-2e-4 f= -16.2
Write a function that draws a circle on the coordinate plane.
The MATLAB function should use a,b r inputs, where a and b are the x-axis and y-axis coordinates of the center of the circle and the radius being r.
Add the labels to axes and annotation (a,b) at the center of the circle.
(use the parametric equation of a circle).
You are given the price list of certain equipment (Table 1).
Write a script or function that takes an input for the number of items from each equipment and calculates the total number of equipment, total cost, and average cost per item.
(Table 1: Price List: )
Equipment Price (£)
Power generator 30
Transformer 10
Stepper motor 15
DC motor 8.5
Write a script of function that will take an input as the total budget and calculate how many items can be purchased for each equipment
On the first day of the month, 4 customers come to a restaurant. Afterwards, those 4 customers come to the same restaurant once in 2,4,6 and 8 days respectively.
a). On which day of the month, will all the four customers come back to the restaurant together?
y(n) −2.56y(n −1)+2.22y(n−2)−0.65y(n−3) = x(n)+x(n−3)
A 10.00cm. tall light bulb is placed at a distance of 90.0cm from a concave mirror having a focal length of 21 cm . Determine the images l distance and the image size
A typical chemical formula for aerobic growth of a microorganisms is
C2H5OH + a(O2) + (b)NH3 —> (c)CH1.7H0.15O0.4 + (d)H2O + (e)CO2
where term CH1.7H0.15O0.4 represents metabolism of the microorganism. The ratio of moles of CO2 produced per mole of O2 consumed is called the respiratory quotient, RQ, which can be determined experimentally. Given this ratio we have 4 constants, a-d that are unknown. We can perform a mass balance on each of the four key elements
Carbon: 2 = c + (RQ)a
Hydrogen: 6 + 3b = 1.7c + 2d
Oxygen: 1 + 2a = 0.4c + d + 2(RQ)a
Nitrogen: b = 0.15c
Let RQ = 0.8 and then find the vector [a b c d] using Gauss Elimination Method.
Integrate the functions below between the limits 0 and 1 by Simpson’s rule.
a) f(x) = sin(x)/(1+x^4)
b) f(x) = e^-x(1+x)^-5
c) f(x) = cos(x)e^-x^2