1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
schepotkina [342]
3 years ago
10

Write a MATLAB program in a script file that calculate the average, standard

Engineering
2 answers:
Kryger [21]3 years ago
7 0

Answer:

Code in MATLab is given as  below:

Explanation:

grade = input('Enter the grades as elements of a vector ');

x1 = length(grade);

fprintf('There are %5.2f grades\n',x1);

x2 = mean(grade);

fprintf('The average grade is %5.2f \n',x2);

x3=std(grade);

fprintf('The standard deviation is %5.2f \n',x3);

x4 = median(grade);

fprintf('The median grade is %5.2f \n',x4);

ella [17]3 years ago
4 0

Answer:

Complete Matlab code along with explanation and output results are given below.

Matlab Code:

clear all

close all

clc

input_grades = input('Enter the grades as elements of a vector ');  

len = length(input_grades);

fprintf('There are %.2f grades\n', len);

Mean = mean(input_grades);

fprintf('The Average grade is: %.3f\n', Mean);

STD=std(input_grades);

fprintf('The Standard Deviation is: %.3f\n', STD);

Median = median(input_grades);

fprintf('The Median grade is: %.2f\n', Median);

Output:

Enter the grades as elements of a vector [92,74,53,61,100,42,80,66,71,78,91,85,79,68]

There are 14.00 grades

The Average grade is: 74.286

The Standard Deviation is: 15.760

The Median grade is: 76.00

Explanation:

The user provides input vector of grades

Using the built-in functions of Matlab the length, mean, standard deviation and median of the grades are calculated and printed.

%.2f is a text formatting command that means show up to 2 decimal digits and convert the floating point values to text.

The input vector provided in the question is tested and the program is working correctly.

You might be interested in
Exhaust gas from a furnace is used to preheat the combustion air supplied to the furnace burners. The gas, which has a flow rate
Monica [59]

Answer:

The total tube surface area in m² required to achieve an air outlet temperature of 850 K is 192.3 m²

Explanation:

Here we have the heat Q given as follows;

Q = 15 × 1075 × (1100 - t_{A2}) = 10 × 1075 × (850 - 300) = 5912500 J

∴ 1100 - t_{A2} = 1100/3

t_{A2}  = 733.33 K

\Delta \bar{t}_{a} =\frac{t_{A_{1}}+t_{A_{2}}}{2} - \frac{t_{B_{1}}+t_{B_{2}}}{2}

Where

\Delta \bar{t}_{a} = Arithmetic mean temperature difference

t_{A_{1} = Inlet temperature of the gas = 1100 K

t_{A_{2} = Outlet temperature of the gas = 733.33 K

t_{B_{1} =  Inlet temperature of the air = 300 K

t_{B_{2} = Outlet temperature of the air = 850 K

Hence, plugging in the values, we have;

\Delta \bar{t}_{a} =\frac{1100+733.33}{2} - \frac{300+850}{2} = 341\tfrac{2}{3} \, K = 341.67 \, K

Hence, from;

\dot{Q} = UA\Delta \bar{t}_{a}, we have

5912500  = 90 × A × 341.67

A = \frac{5912500  }{90 \times 341.67} = 192.3 \, m^2

Hence, the total tube surface area in m² required to achieve an air outlet temperature of 850 K = 192.3 m².

4 0
3 years ago
Though still is on the margins of the global agro-food system, organic farming practices are on the rise in the core. In growing
lisabon 2012 [21]

Answer: composted cow manure

Explanation:

A cow manure consists of high levels of ammonia, pathogens which can harm the plants thus cannot be used as fertilizer. The composted cow manure is a processed fertilizer which is prepared by eliminating the ammonia gas and pathogens. It is prepared by adding up the additional organic matter.

It is an excellent growing medium for the agricultural crops and garden plants as it is a nutrient rich fertilizer. It is mixed into the soil or can be used for top dressing of the agricultural field. It is a kind of organic manure.

4 0
3 years ago
Write an<br> algorithm and draw a flowchart to convert the length in feet to<br> centimeter
Simora [160]

Answer:

blah blah blah sh ut up read learn

3 0
3 years ago
Fluid power is a. The technology that deals with the generation, control, and transmission of power-using pressurized fluids b.
snow_tiger [21]

Answer:  a) The technology that deals with the generation, control and transmission of power using pressurized fluids

Explanation: Fluid power is defined as the fluids which are under pressure and then are used for generation,control and transmit the power. Fluid power systems produces high forces as well as power in small amount . These systems usually tend to have better life if maintained properly. The force that are applied on this system can be monitored by gauges as well as meter.

8 0
3 years ago
An example of Ferrous alloy is Brass a)-True b)-False
djyliett [7]

Answer: False

Explanation: No, brass is not a ferrous alloy.  

      Ferrous alloys are those alloy which contain iron like cast iron, steel, strain-less steel, high carbon steel. Brass on the other hand does not contain any composition. of iron hence it can not be considered as a ferrous alloy. Brass comes under the category of non- ferrous made with a composition of copper and zinc, however their proportion is not strict and we can add other elements like aluminium or lead to alter its durability or corrosiveness.  

5 0
4 years ago
Other questions:
  • The displacement volume of an internal combustion engine is 2.2 liters. The processes within each cylinder of the engine are mod
    13·1 answer
  • Check the answer that best describes the relationship between f(x) and x. (For example if f(x) is Θ(x) check that as your answer
    12·1 answer
  • A 3-m wide rectangular channel has a flow velocity of 1.8 m/s when the depth of flow is 1.2 m. what will be the flow velocity wh
    14·1 answer
  • How do people eat with there noses shut
    12·2 answers
  • An amplifier with 40 dB of small-signal, open-circuit voltage gain, an input resistance of 1 MO, and an output resistance of 100
    14·1 answer
  • Which of the following describes a polar orbit?
    7·1 answer
  • When using fall arrest, free fall must be kept at or below how many feet
    13·1 answer
  • When a circuit has more resistance, what happens to current flow ?
    9·1 answer
  • John, a team member, has completed e0 - agile for beginners he wants to contribute to tcs agile vision. he wants to find out wha
    13·1 answer
  • thanh thẳng AD có kích thước và chịu lực như hình.biết P1 = 10kn, p2=5kn,M=15kn*m,a=2m.Hãy xách định phản lực liên kết tại A,b
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!