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
A computer maintenance company wants to 'capture' the knowledge that employees carry around in their heads by creating a databas
galina1969 [7]

Answer: The answer is A. The company is trying to transfer intellectual capital to a knowledge management system

5 0
3 years ago
How would I find the Voltage across the open circuit
Nimfa-mama [501]

Answer:

  Vab = 80V

Explanation:

The only current flowing in the circuit is supplied by the 100 V source. Its only load is the 40+60 ohm series circuit attached, so the current in that loop is (100V)/(40+60Ω) = 1A. That means V1 = (1A)(60Ω) = 60V.

Vab will be the sum of voltages around the right-side "loop" between terminals 'a' and 'b'. It is (working clockwise from terminal 'b') ...

  Vab = -10V +60V +(0A×10Ω) +30V

  Vab = 80V

3 0
2 years ago
What is a shearing stress? Is there a force resulting from two solids in contact to which is it similar?
Luba_88 [7]

Answer:

Shearing stresses are the stresses generated in any material when a force acts in such a way that it tends to tear off the material.

Generally the above definition is valid at an armature level, in more technical terms shearing stresses are the component of the stresses that act parallel to any plane in a material that is under stress. Shearing stresses are present in a body even if normal forces act on it along the centroidal axis.

Mathematically in a plane AB the shearing stresses are given by

\tau =\frac{Fcos(\theta )}{A}

Yes the shearing force which generates the shearing stresses is similar to frictional force that acts between the 2 surfaces in contact with each other.  

7 0
4 years ago
Design for human-fit strategies include:
andreev551 [17]

Answer:

B- extreme fit, close fit, adjustable fit

Explanation:

A human-fit design typically involves the process of manufacturing or producing products (tools) that are easy to use by the end users. Therefore, human-fit designs mainly deals with creating ideas that makes the use of a particular product comfortable and convenient for the end users.

The design for human-fit strategies include; extreme fit, close fit and adjustable fit.

Hence, when the aforementioned strategies are properly integrated into a design process, it helps to ensure the ease of use of products and guarantees comfort for the end users.

5 0
3 years ago
Clarifying the issues of a problem is the _____ step in the problem solving process.
ratelena [41]
The answer is 2nd Step because the first step is to define the problem and third is to define your goals
7 0
4 years ago
Other questions:
  • Consider flow in between two parallel plates located a distance H from each other. Fluid flow is driven by the bottom plate movi
    15·1 answer
  • Describe three advantages and three disadvantages of JIT?
    12·1 answer
  • A large prime number isP = 232582657 - 1
    8·1 answer
  • WILL BRAINLIEST IF CORRECT!!!!!<br><br> Some one help ASAP.
    8·1 answer
  • Consider atmospheric air at 20°C and a velocity of 30 m/s flowing over both surfaces of a 1-m-long flat plate that is maintained
    11·1 answer
  • What is wrong with the following code?<br> 6<br> print (what is your name?)
    9·2 answers
  • A) Consider an air standard otto cycle that has a heat addition of 2800 kJ/kg of air, a compression ratio of 8 and a pressure an
    7·1 answer
  • It is better to know or not to know?​
    6·2 answers
  • Running ropes must be taken out of service if they have _____ broken wires in one strad in one lay
    15·2 answers
  • QUESTION<br> Which of the following would assembler do an ideal automated assembly line?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!