Generate the following matrices by writing one command

Assignment Help Other Engineering
Reference no: EM131849096

Problem 1

Write a program called my_plot.m Your program is to provide a plot (x against y) of the following function

x(t)=16sin3(t)

y(t) = A cos(t) - 5 cos(2t) - 2 cos(3t) - cos(4t)

Let t span the range -10 to 10. The parameter A will be user supplied. In other words, as you run the program it should prompt the user for that value (just like the example that we looked at the end of chapter 1). Let line color of your plot be red and of linewidth greater than 2.

Label your x and y axes as 'X' and 'Y'. Let the title of your plot be 'MY PLOT'.

Problem 2

Create a program called "generate_matrices.m". In that program, generate the following matrices by writing one command (i.e., you are not to type the individual elements explicitly). For MI use the colon operator to address the range of elements

(Hint: you can use [[][]] to concatenate arrays/matrices).

For M2 and M3 make use of eye() (built-in function that allows you to create an identify matrix ... do help on it for more if), zeros() and ones().

As we run your program, it ought to display those three matrices in the command window (don't suppress the output of your command lines).

93_Data.jpg

Reference no: EM131849096

Questions Cloud

What is the tension in the wire : What is the tension in the wire? (The density of copper is 8.93 g/cm3.)
Concepts to better understand the world around : 1. How could I use potential energy in personal life, how could I use the concepts to better understand the world around me?
What is the total kinetic energy of the twomass system : What is the total kinetic energy of the twomass system after the collision? Answer in units of J.
Speed of the three coupled cars after the collision : What is the speed of the three coupled cars after the collision? Answer in units of m/s. How much kinetic energy is lost in the collision? Answer in units of J
Generate the following matrices by writing one command : Create a program called "generate_matrices". In that program, generate the following matrices by writing one command.
What is the standard deviation of this portfolio : What is the standard deviation of this portfolio given the following information?
Design a two step dilution series : Design a two step dilution series so that at the end your group has the desired glucose solution.
Oxide of nitrogen with a molecular weight : An analysis of an oxide of nitrogen with a molecular weight of 92.02 amu gave 69.57% oxygen and 30.43% nitrogen.
Mba employed by major consulting firm : Samuel Adams, a fresh-minted MBA employed by a major consulting firm, has turned 25 today and he plans to retire at the age 60.

Reviews

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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