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

  Calculate the magnitude of electric field

Calculate em and ep by multiplying the unit vectors by emmag and epmag - Create a vector x for points along the x-axis.

  Design and synthesis of continuous time controllers

Design and synthesis of continuous time controllers - A graphical user interface (GUI) is a human-computer interface that uses menus, dialogue box, and button which can be manipulated by a mouse

  Determine the minimum area of the panel for an output of 1

a reversible heat engine in a satellite operates between a hot reservoir at t1 and a radiating panel cold reservoir at

  Biorhythm- matlab problem

All three cycles started at zero when you were born. How long does it take until all three simultaneously return to that initial condition? How old were you, or will you be, on that date? Plot your biorhythm near that date. You should ?nd the lcm ..

  Consider the random process

Consider the random process Z(t) = Acos(pi t), where A is a random variable that follows the standard normal Gaussian.

  Create a script file for conversion of temperature

Create a script file for conversion of temperatures. Use the input function or menu function to allow the user to enter temperature scale of Fahrenheit, Celsius, Kelvin, or Rankine. If you are using the input function, tell the user to enter F for Fa..

  Design a normalized lowpass analog filter

Design a normalized lowpass analog filter by using one of Matlab's routines: buttap, cheb1ap, cheb2ap, ellipap to get your analog poles

  Recall the velocity of the falling parachutist

Question: Recall the velocity of the falling parachutist can be computed by  V(t) = gm(1-e -c/mx )/c,  Use first order error analysis to estimate the error of v at t=6. If g=9.8 and m=50 but c=12.5 +_ 1.5

  Newtons and lagrange interpolation polynomials

What conclusion can you draw from the comparison between Newton's and Lagrange interpolation polynomials? Explain your findings.

  Script that will graphically show the range of frequency

the script that will graphically show the range of frequencies for which the ouput amplitude is less than 70% of the input amplitude. The original problem statement

  What is a super-efficiency model

What is a super-efficiency model - distinguish the performance of best-practice DMUs

  Using matlab and for loops

Using MATLAB and for loops, provide an animation that follows the below steps: Start with a square at the origin with each side being 5 units long. Imagine someone kicked the box and animate it moving on a projectile motion trajectory. Hint: look at ..

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