Find maximum and minimum values of given elements

Assignment Help MATLAB Programming
Reference no: EM131026995

Find Maximum and Minimum values of Given Elements Using MATLAB

Problem:

For the following, write the commands in a script file leaving the semi-colon off so the answers print in the command window. Turn in the script and output. Output should include:

a. number of elements in ts1

b. number of elements in ts2

c. first element in ts1

d. first element in ts2

e. sum of ts1

f. minimum value in ts1

g. mean of ts1

h. first element in tsRev

i. last element in tsRev

Create a script that first creates two variables, ts1 and ts2. Use linspace to create ts1 and the : operator to create ts2.

Both ts1 and ts2 should start at 0 and end at 1, and have (approximately) 100 elements.
Check that the number of elements is approximately correct using the command length on both variables
Check that the first element of each array is, indeed, zero, by accessing the first element using the ts(1) syntax.
Check that the last element of each array is, indeed, 1, by accessing the last element of each array
Hint: What do you put in the () to get the last element?
Calculate the sum, min and average (mean) of the ts1 array
What should the min value be?
What should the mean value be?
Use linspace to create an array tsRev that has the same values as ts1, but in reverse order.
Check the first and last values of tsRev.

Additional Information

This problem related to MATLAB software and discusses about application of MATLAB in mathematics to find out the maximum and minimum values in a group of given elements.

Reference no: EM131026995

Questions Cloud

Marketing practices due to a change in morals over time : Describe an example of where business ethics have changed in regards to marketing practices due to a change in morals over time.
Differences in strategy formulation-strategy implementation : Identify and briefly discuss three differences between strategy formulation and strategy implementation?
Disadvantages of a divisional organizational structure : What are the advantages and disadvantages of a divisional organizational structure?
About setting up a human source collection network : Discuss how you would go about setting up a human source collection network in the company for whom you currently work. What would the strengths and weaknesses of it be? What roadblocks do you think you would encounter and how would you overcome them..
Find maximum and minimum values of given elements : Create a script that first creates two variables, ts1 and ts2 -  Find Maximum and Minimum values of Given Elements Using MATLAB
Essay-exploring ancient mysteries : Choose one (1) of the topics below and develop a three to four (3-4) paragraph essay (of at least 250-550 words) which adequately address the topic you have chosen.
Write a matlab program to analyze a patients ecg signal : Determine the Heart Rate of an ECG Recording of Unknown properties Using MATLAB - Write a MATLAB program to analyze a patient's ECG signal and provide warnings if the heart rate becomes either dangerously low or dangerously high.
State how many complex and real zeros the functon has : find all of the zeros and write a linear factorization of the function
What is a prime data : Define "prime date" to be a date during the year where both the months (as a number, i.e. January is 1, February is 2, etc) and the day are both prime numbers. What is the average number of prime dates per week in one year?

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