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

  Matlab – discrete time simulation

MATLAB – Discrete time simulation, solve  Discrete time syetm problem,  DT kalman filter problem,  Steady state DT kalman filter problem

  Create a function file that computes the distance

Write a function that accepts temperature in degree Fahrenheit and computes the corresponding value in degrees Celsius. The weight force must balance the spring forces at this new position.

  Least squares

For homework consider the points (0,0), (1,2), (2,3), (3,9), ( 4,17), (5,24), (6,37). (1) Use Matlab to find the least squares best fit with a line.  Turn in A, y and c and a plot like the one above.  Also (2) use Matlab to find the least square best..

  Kerfuffleboard is a game very much like shuffleboard

Kerfuffleboard is a game very much like Shuffleboard. Players take turns shooting disks at a trianglular scoring area. While the scoring areas are the same in shuffleboard and kerfuffleboard, a disk's contribution to a player's score will be calcu..

  Open a named pipe and to read data from the pipe

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

  Recognition of colour

MATLAB for recognition of colour randomly using webcam realtime for RGB without external trigger in GUI.

  Stepper motor driven xy table

Stepper Motor Driven XY Table - Use Matlab and Labjack to acquire digital inputs from limit switches and use Matlab to analyze acquired data

  Describe how you would access these 4 members

Create a namespace titled global Type that contains four members. The members should be two named constants, n and rate. It should also contain a variable count and the function printResult. Describe how you would access these 4 members in a progr..

  Design a controller which regulates flow

Design a controller which regulates flow and compensate pressure to my desire value in simscape.

  Calculate and finalize using matlab

Estimate the rate of heat loss by breathing in kcal/hr. Also estimate the rate of water loss in gm/hr. Where A is from your student id number - calculate and finalize using matlab

  Use regression algorithms

The proposal which are two pages and here is the demands - Use Regression Algorithms or any type to achieve the target In Data Mining matter dealing with E-Learning Students' Data.

  Calculates the required input torque and the magnitudes

Calculates the required input torque (T) and the magnitudes of the pin reaction forces (A, B, and C, along both x and y directions) for two full revolutions (0 ≤ θ ≤ 4Π) of the crank.

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