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
What does a manufacturing engineer do?
Lisa [10]

Answer: Manufacturing engineers may be responsible for solving production problems, conducting cost-benefit assessments, or designing and manufacturing goods and systems using computer-aided design software. Plant engineers and process engineers are two terms used by professionals in this industry. Manufacturing engineers are in charge of new and existing production lines' technical management, maintenance, and development. Employers are looking for people that are commercially aware and have good technical and analytical skills. They are in charge of keeping production costs low while preserving the product or service's quality, and they have considerable project expertise and insight.

Explanation: See above.

I hope this helps.

6 0
2 years ago
Read 2 more answers
Who has good grades in school like A's B's dm me
siniylev [52]

Answer:

I do

Explanation:

4 0
3 years ago
Read 2 more answers
Question 1 of 8.
Rasek [7]
The answer seems pretty obvious, all of the above
8 0
3 years ago
Read 2 more answers
A tubular reactor has been sized to obtain 98% conversion and to process 0.03 m^3/s. The reaction is a first-order irreversible
Zolol [24]

Answer:

The conversion in the real reactor is = 88%

Explanation:

conversion = 98% = 0.98

process rate = 0.03 m^3/s

length of reactor = 3 m

cross sectional area of reactor = 25 dm^2

pulse tracer test results on the reactor :

mean residence time ( tm) = 10 s and variance (∝2) = 65 s^2

note:  space time (t) =

t = \frac{A*L}{Vo}   Vo = flow metric flow rate , L = length of reactor , A = cross sectional area of the reactor

therefore (t) = \frac{25*3*10^{-2} }{0.03} = 25 s

since the reaction is in first order

X = 1 - e^{-kt}

e^{-kt} = 1 - X

kt = In \frac{1}{1-X}

k = In \frac{1}{1-X} / t  

X = 98% = 0.98 (conversion in PFR ) insert the value into the above equation then  

K = 0.156 s^{-1}

Calculating Da for a closed vessel

; Da = tk

      = 25 * 0.156 = 3.9

calculate Peclet number Per using this equation

0.65 = \frac{2}{Per} - \frac{2}{Per^2} ( 1 - e^{-per})

therefore

\frac{2}{Per} - \frac{2}{Per^2} (1 - e^{-per}) - 0.65 = 0

solving the Non-linear equation above( Per = 1.5 )

Attached is the Remaining part of the solution

3 0
3 years ago
The mass fractions of total ferrite and total cementite in an iron–carbon alloy are 0.91 and 0.09, respectively. Is this a hypoe
WINSTONCH [101]

Answer:

hypoeutectoid

Explanation:

ferrite:  pure form of iron

cementite: It is iron carbide with 93.3% iron and 6.67% carbon

hypoeutectoid: Eutectoid steel with carbon fraction less than 0.8%

hypereutectoid: Eutectoid Steel with carbon content more than 0.8%

For the mentioned iron-carbide alloy,

% of carbon in iron-carbide alloy= percentage of cementite × percentage of carbon in cementite

% of carbon in iron-carbide alloy= 0.09× 0.0667

                                                     = 0.6%

so the alloy is hypoeutectoid

4 0
4 years ago
Other questions:
  • A soil has the following Green-Ampt parameters Effective porosity 0.400 Initial volumetric moisture content-15% Hydraulic Conduc
    6·1 answer
  • DO NOW: Name the three main legal categories of ownership.
    12·1 answer
  • What are your thoughts on physical education ?
    12·2 answers
  • help me please help me please help me please help me please help me please help me please help me please help me please help me
    13·2 answers
  • I will put other link in comments
    12·1 answer
  • Which of following are coding languages used in controlling a robot? *
    15·1 answer
  • Compare both xbox and playstaion. What are pros and cons between the two gaming systems. What is your game system of choice?
    13·1 answer
  • Two solid yellow center lines on a two-lane highway indicate:
    13·2 answers
  • Which of the following might a cement mason or concrete finisher be responsible for? (Select all that apply).
    5·1 answer
  • Invent five new communication method wired or wireless you think would be practical
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!