Calculates the average and the standard deviation

Assignment Help MATLAB Programming
Reference no: EM131459468

Assignment

Use MATLAB to solve each problem by writing script files; copy and paste the script file AND the results in the Command Windowand/or plot in the Figure Windowto a WORD document that has your name and section in the headers of each page and the page number in each footer. Edit the output to remove extra lines and empty spaces. The script files SHOULD have comments for easy readability; take a print out of the Word file andstaple before submission.

1. Write a used-defined function that calculates the average and the standard deviation of a list of numbers. Use the function to calculate the average and the standard deviation of the following list of grades: 80 75 91 60 79 89 65 80 95 50 81

Note: The average x_ave (or mean) of a given set of n number x_1,x_2,.....,x_n is given by:

x_ave=(x_1+x_2+x_3+?+x_n)/n

The standard deviation is given by: σ=√((∑_(i=1)^(i=n) (x_i-x_ave )^2 )/(n-1))

DO not use built-in functions to calculate the mean and the standard deviation.

2. Write a user-defined function that arranges the digits of a given (positive) number in a row vector in the same order as they appear in the number; the function should also arrange the digits in the decimal part in a different vector. For example, if the number is 2645.12, the vectors should be [2 6 4 5] and [1 2]. The whole number can be from 0 to 10 digits long and the decimal part 0 to 6. Check the validity of the function using a few numbers of your choice.

3. A fenced enclosure consists of a rectangle of length L and width 2R, and a semicircle of radius R, as shown in Figure.

1759_Semicircle.jpg

The enclosure is to be built to have an area A of 1600 ft2. The cost of the fence is $40 per foot for the curved portion, and $30 per foot for the straight sides. Determine the values of R and L required to minimize the total cost of the fence and the minimum cost using calculus approach.

A water tank consists of a cylindrical part of radius r and height h, and a hemispherical top. The tank is to be constructed to hold 500 meter3 of fluid when filled. The cost to construct the cylindrical part of the tank is $300 per square meter of the surface area; the hemispherical part costs $400 per square meter. Determine the radius that results in the least cost and compute the corresponding height and the cost using graphical approach. Verify your results using the calculus approach.

A ceramic tile has the design shown in the figure.

2481_Sin_Wave.jpg

The shaded area is painted black and the rest of the tile is white. The border line between the red and the white areas follows the equation:

y=Asin(x)

Determine A such that the area of the white and black colors will be the same.

 

Reference no: EM131459468

Questions Cloud

Displays of data in regression analysis : Explain the benefits of using visual displays of data in regression analysis. Address specifically the use of a scatterplot and a plot of residuals.
Calculate the new value of apparent power : Calculate the new value of apparent power. What is the new value of reactive power? What is the new value of real power? What is the new power factor?
Research potential job requirements : Select three of the HR roles and research potential job requirements for each. Write a 350-word job description for each HR role that you have selected.
Research potential job requirements : Select three of the HR roles and research potential job requirements for each.
Calculates the average and the standard deviation : Write a used-defined function that calculates the average and the standard deviation. Determine A such that the area of the white and black colors will be same.
Knowledge base that is integrated with other disciplines : The professional logistics manager must develop a knowledge base that is integrated with other disciplines. Quality and Total Quality Management.
What would be the rate of return for new product in planning : 7 years forecast for a the new product development and sales data: What would be the Rate of Return for a new product in planning.
Step in the quantitative analysis approach : Why is each step important? What does the phrase "garbage in, garbage out" mean? Describe an example in which this may occur.
Strengths and weakness of adaptive leadership : What are the strengths and weakness of adaptive leadership?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd