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

  Compare two sound wave in matlab

Compare two sound wave in matlab as on speech to text processing and open as notepad, calculator,C:,D: and many other on speaking

  Write the command and assign it to variable

Write the command and assign it to variable , Write a function named function_test

  Display the magnitude of images two-d fourier transform

Display the magnitude of its 2-D Fourier Transform in the form of the image. Bring the (0, 0) - frequency coordinate to the center of this display.

  Write a matlab function newtonraphson

Write a MATLAB function newtonRaphson(fx, x0, sigfig, maxIT) that will return a root of the function f(x) near x=x0 using the Newton-Raphson method, where sigfig is the accuracy of the solution in terms of significant figures

  Write a function named ''read_line''

Verify that your code works by saving some text into a file (created in notepad / textedit) and saving the file with extension '.txt'. You should attach the file (call it 'test.txt') with your code.

  Determine the average heat transfer coefficients over l 2

water at an average temperature of 47 ordmc and with a flow rate of 0.02 kgs flows through a 2 cm diameter tube which

  Make a function of the coding

Generate Plot of the Example 1-10 on MATLAB,Use INPUT for variable external force

  Impact of zigbee on telecommunication systems

Report on Impact of zigbee on telecommunication systems

  Write a function that takes a list of integers as argument

Write a function that takes a list of integers as argument and returns a pair consisting of the sum of the even positions and the sum of the odd positions of the list. You should not use any auxiliary functions.

  Type of study and phenomenon of interest

Summarize the type of study and phenomenon of interest, discuss whether the sample and population used were appropriate and Summarize results, limitations of results, conclusions, and applications.

  Determine the specular component

Reparemeterizing each pixel point using spherical coordinates and rotation RGB color space to SUV color space in the paper

  Step response of the position servo system

Use MATLAB to plot the step response of the position servo system for values of the gain K=0.5, 1.0, 2.0 below is possible data code

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