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
The mean of 10 numbers is 9, then the sum (total) of these numbers will be​
qwelly [4]

Answer:

90

Explanation:

mean is basically taking the sum of all numbers and then dividing the sum with the number of all given numbers..

here, the mean is 9, total numbers are 10.. so the sum will be 9 multiplied by 10, that is 90.

5 0
3 years ago
Read 2 more answers
Consider the 'scope trace showing the input signal to an rc filter (the one having the larger amplitude) and the output of the f
yulyashka [42]

The corner frequency of this filter in hz is Directly switched the documents to one-of-a-kind Cloud Multi-Regional Storage bucket places in US, EU, and Asia the usage of APIs over HTTP(S).

<h3>What is Multi-Regional Storage?</h3>

It is geo-redundant, this means that Cloud Storage shops your information redundantly in as a minimum geographic location separated via way of means of as a minimum one hundred miles in the multi-local vicinity of the bucket.

Multi-Regional Storage is suitable for storing information this is often accessed ("hot" objects), along with serving internet site content, interactive workloads, or information helping cell and gaming applications. Multi-Regional Storage information has the maximum availability as compared to different garage classes.

Read more about the amplitude:

brainly.com/question/413740

#SPJ1

6 0
2 years ago
A(n) ___ is an electric device that uses electromagnetism to change (step up or step down) AC voltage from one level to another.
Pie

Answer:

A transformer is an electric device that uses electromagnetism to change voltage from one level to another or to isolate one voltage from another.

7 0
3 years ago
Briefly discuss if it would be better to operate with pumps in parallel or series and how your answer would change as the steepn
Aleksandr [31]

Answer:

1) In series, the combined head will move from point 1 to point 2 in theory. However, practically speaking, the combined head and flow rate will move along the system curve to point 3.

2) In parallel, the combined head and volume flow will move along the system curve from point 1 to point 3.

Explanation:

1) Pump in series:

When two or more pumps are connected in series, their resulting pump performance curve will be obtained by adding their respective heads at the same flow rate as shown in the first diagram attached.

In the first diagram, we have 3 curves namely:

- system curve

- single pump curve

- 2 pump in series curve

Also, we have points labeled 1, 2 and 3.

- Point 1 represents the point that the system operates with one pump running.

- Point 2 represents the point where the head of two identical pumps connected in series is twice the head of a single pump flowing at the same rate.

- Point 3 is the point where the system is operating when both pumps are running.

Now, since the flowrate is constant, the combined head will move from point 1 to point 2 in theory. However, practically speaking, the combined head and flow rate will move along the system curve to point 3.

2) Pump in parallel:

When two or more pumps are connected in parallel, their resulting pump performance curve will be obtained by adding their respective flow rates at same head as shown in the second diagram attached.

In the second diagram, we have 3 curves namely:

- system curve

- single pump curve

- 2 pump in series curve

Also, we have points labeled 1, 2 and 3

- Point 1 represents the point that the system operates with one pump running.

- Point 2 represents the point where the flow rate of two identical pumps connected in series is twice the flow rate of a single pump.

- Point 3 is the point where the system is operating when both pumps are running.

In this case, the combined head and volume flow will move along the system curve from point 1 to point 3.

5 0
3 years ago
2. A thin vertical panel L = 3 m high and w = 1.5 m wide is thermally insulated on one side and exposed to a solar radiation flu
n200080 [17]

Answer: 383.22K

Explanation:

L = 3m, w = 1.5m

Area A = 3 x 1.5 = 4.5m2

Q' = 750W/m2 (heat from sun) ,

& = 0.87

Q = &Q' = 0. 87x750 = 652.5W/m2

E = QA = 652.5 x 4.5 = 2936.25W

T(sur) = 300K, T(panel) = ?

Using E = §€A(T^4(panel) - T^4(sur))

§ = Stefan constant = 5.7x10^-8

€ = emmisivity = 0.85

2936.25 = 5.7x10^-8 x 0.85 x 4.5 x (T^4(panel) - 300^4)

T(panel) = 383.22K

See image for further details.

5 0
3 years ago
Other questions:
  • What is the nickname for nigeria​
    12·2 answers
  • Carbon dioxide gas enters a pipe at 3 MPa and 500 K at a rate of 2 kg/s. CO2 is cooled at constant pressure as it flows in the p
    10·1 answer
  • A 2-m3 rigid tank initially contains air at 100 kPa and 22°C. The tank is connected to a supply line through a valve. Air is flo
    14·1 answer
  • An online identity is different and separate from an online profile
    12·1 answer
  • an aluminum bar 125mm (5in) long and having a square cross section 16.5mm (.65in) on an edge is pulled in tension with a load of
    6·1 answer
  • An air conditioning performance check requires the use of a
    10·1 answer
  • A piece of corroded steel plate was found in submerged ocean vessel. It was estimated that the area of plate to be ~38 inch 2, a
    10·1 answer
  • What is the name given to the vehicles that warn motorists about oversized loads/vehicles?
    7·1 answer
  • prove that the heat transfer at the constant pressure is given by the enthalpy change during the process​
    7·1 answer
  • Which statement is WRONG?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!