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
Four of the minterms of the completely specified function f(a, b, c, d) are m0, m1, m4, and m5.
Sveta_85 [38]

Complete Question

The complete question is shown on the first uploaded image

Answer:

a) The required additional minterms  for f so that f has eight primary implicants with two literals and no other prime implicant are m_{2},m_{3},m_{7},m_{8},m_{11},m_{12},m_{13},m_{14} and m_{15}

b) The essential prime implicant are c' d',a'b',ab and cd

c) The minimum sum-of-product expression for f are

                  a'b' +ab +c'd'+cd+a'c',\\ a'b'+ab+c'd'+cd+a'd,\\a'b'+ab+c'd'+cd+bc'  and  \\ a'b'+ab+c'd' +cd+bd

Explanation:

The explanation is shown on the second third and fourth image

8 0
2 years ago
Discuss the differences between conduction and convective heat transfer.
FrozenT [24]

Answer:

Basically there are two principal differences between the convection and conduction heat transfer

Explanation:

The conduction heat transfer is referred to the transfer between two solids due a temperature difference, while for, the convective heat transfer is referred to the transfer between a fluid (liquid or gas) and a solid. Also, they used different coefficients for its calculation.

We can include on the explanation that conduction thermal transfer is due to temperature difference, while convection thermal transfer is due to density difference.

8 0
2 years ago
What happens when the arms of the milky move away from the center of the galaxy
Alina [70]
Well this question is though because we have never seen such a thing ! and to be quite frank when that happens , nothing good comes from it. Black Holes
6 0
3 years ago
How many trips would one rubber-tired Herrywampus have to make to backfill a space with a geometrical volume of 5400 cubic yard?
nikklg [1K]

Answer:

If analyzed by volume capacity, more trips are needed to fill the space, thus the required trips are 288

Explanation:

a) By volume.

The shrinkage factor is:

\frac{5400cu-yd}{1-0.25} =7200cu-yd

The volume at loose is:

V_{loose} =V_{bank} (1+swell-factor)=7200(1+0.2)=8640cu-yd

If the Herrywampus has a capacity of 30 cubic yard:

\frac{8640cu-yd}{30cu-yd/trip} =288trip

b) By weight

The swell factor in terms of percent swell is equal to:

pounds-per-cubic-yard-loose=\frac{pounds-per-cubic-yard-bank}{\frac{percent-swell}{100}+1 }

pounds-per-cubic-yard-loose=\frac{3000}{\frac{20}{100} +1} =2500lb/cu-yd

The weight of backfill is:

8640cu-yd*2500\frac{lb}{cu-yd} *\frac{1ton}{2000lb} =10800ton

The Herrywampus has a capacity of 40 ton:

\frac{10800}{40ton/trip} =270trip

If analyzed by volume capacity, more trips are needed to fill the space, thus the required trips are 288

8 0
3 years ago
What is CAD/CAM (Computer-Aided Designing and Manufacturing) used for in school?<br> Plz help
joja [24]
It used for designing homes and drafting products before production
8 0
3 years ago
Read 2 more answers
Other questions:
  • Tech A says that horsepower is a measurement simply of the amount of work being performed. Tech B says that horsepower can be ca
    6·1 answer
  • Que rol tiene el ecosistema el patos
    15·1 answer
  • How does flextape adhere under water?​
    8·1 answer
  • A fatigue test was conducted in which the mean stress was 46.2 MPa and the stress amplitude was 219 MPa.
    12·1 answer
  • Realize the function f(a, b, c, d, e) = Σ m(6, 7, 9, 11, 12, 13, 16, 17, 18, 20, 21, 23, 25, 28)using a 16-to-1 MUX with control
    13·1 answer
  • Five kilograms of air at 427°C and 600 kPa are contained in a piston–cylinder device. The air expands adiabatically until the pr
    15·1 answer
  • If the power to a condensing unit has been turned off for an extended period of time, the _________________________ should be en
    12·1 answer
  • Please answer fast. With full step by step solution.​
    14·1 answer
  • Coving is a curved edge between a floor and a wall.<br> O True<br> O False
    13·2 answers
  • A continuously variable transmission:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!