Matlab command that will create a ten-element column vector

Assignment Help MATLAB Programming
Reference no: EM13849380

1. Given matrix C_4=[2 4 6 8 10;3 6 9 12 15; 7 14 21 28 35]

a. Write one MatLab command that will create a three-element column vector named A_4 that contains the elements of the third column of C_4. Use the disp command to present your final answer.

b. Write one MatLab command that will create a five-element vector named B_4 that contains the elements of the second row of C_4. Use the disp command to present your final answer.

c. Write one MatLab command that will create a nine-element column vector named D_4 that contains the elements of the first, third and fifth columns of C_4. Use the disp command to present your final answer.

d. Write one MatLab command that will create a ten-element column vector named F_4 that contains the elements of the first and second rows of C_4. Use the disp command to present your final answer.

2. The maximum daily temperature (in °F) for New York City and Pittsburgh during the month of January, 2006 are given in the vectors below

TNY=[31 26 30 29 33 33 39 41 41 34 33 45 42 36 39 37 45 43 36 41 37 32 35 42 38 33 40 37 36 51 50] TPITT=[37 24 28 25 21 28 46 37 36 20 24 31 34 40 43 36 34 41 42 35 38 36 35 33 42 40 37 26 20 25 31]

Write a program (script file) to answer the following:

 a) Calculate the average temperature for the month in each city. Use an fprintf command to display the final answer.

 b) Calculate the maximum temperature for the month in each city. Use an fprintf command to display the final answer.

 c) Calculate the minimum temperature for the month in each city. Use an fprintf command to display the final answer.

d) Create a table to display the average, max, min for each city (use the fprintf command to create the table)

City

 

Ave Temperature

 

Max Temperature

 

Min Temperature

 

New York

 

 

 

Pittsburgh

 

 

 

 

Reference no: EM13849380

Questions Cloud

Operating income change : Assume Chris is currently producing and selling 54,000 units. By what percentage will operating income change if sales increase by 15% from 54,000 units? Be sure to provide figures to justify your answer.
Write an editorial considering : Pretend that you are an editorialist, and write an editorial considering whether or not you believe that monopolies should be illegal and defend your argument using pertinent economic theory.
Ethics and values reflection paper : Ethics and values reflection paper- Erik Erikson, one of the most influential psychoanalysts of the 20th century, proposed an eightstage theory of growth as a model for how we live, think, learn and change throughout our lifetimes
Difficult for companie to establish themselves as monopolies : How has the World Wide Web allowed supported the establishment and functioning of these businesses - Do you think that the World Wide Web has made it easier or more difficult to start new businesses? Explain your answer.
Matlab command that will create a ten-element column vector : MatLab command that will create a ten-element column vector named
How many 8-letter passwords are possible : Using only the 26 capital letters of the alphabet, how many 8-letter passwords are possible?
Overcoming the obstucal with good leblel diagram : Write short notes on the overcoming the obstucal with good leblel diagram
Environment surrounding embryonic stem-cell research : Darwin and Thunderbird share office and lab space, equipment, and employees. Because of ethical concerns and the regulatory environment surrounding embryonic stem-cell research, both Darwin and Thunderbird were unsuccessful in gaining significant ..
Describe how performance and quality measures : Describe how performance and quality measures are aligned to an organization's mission, vision, and strategic plan in general. Then, describe how the measures are aligned with the mission, vision, and strategic plan of your organization

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