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

  Pattern recognition

Research and discover more in-depth knowledge about topics in Pattern Recognition and choose a topic. The best topic will be the one you are most interested in or a topic from your research project you are working on.

  Develop a simulation program

Develop a simulation program

  To make things easy, just place the line makeclothes

To make things easy, just place the line makeClothes at the top of your script so you're guaranteed to have the correct acmeClothes array to work with.

  Write a gui function that will display sliders

Write a GUI function that will display sliders - The wind chill factor measures how cold it feels with a given air temperature.

  Plot the lines using the inputted vector of x values and x

Write a function named solveSystem that has three inputs: two vectors consisting of coefficients [a b c] of two line equations of the form ax + by = c and a vector of x values.

  Find the roots using matlab built-in functions roots & fzero

the following equation, what is the modified equation for a fixed-point iteration method. The roots of the function are x = -2.2020235, -0.4088152, and 1.11083871, how would you determine whether or not the method will converge on a root? If the tech..

  Prompts the user to enter grades in a loop

Define a function that takes two input parameters, a vector of test scores and a scalar passing grade. The function returns the fraction of passing grades as a number in the range

  Jacobian needed for newtons method

Write a Sci/Matlab function that returns the function values and the Jacobian needed for Newton's method .

  Write a function in matlab

write a function in MATLAB

  Anatomy of a machine

Need a Machine Learning application written in matlab to be able to predict, based on certain selected features of wine, which variants of wine are likely to score above a 5 out of 10 quality score.

  What is the purpose of the matlas command window

What is the purpose of the MATLAS Command Window. The Edit Window? The Figure Window. List the different ways that you get help in MATLAB. What is a workspace. How can you determine what is stored in a MATLAB workspace

  Write a matlab program segment

Plot the given function in MATLAB for x ranging from -1 to 1. Put a proper title of the plot, also label the axes appropriately.

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