Exercises1make a program that will graph the following

Assignment Help Applications of MATLAB
Reference no: EM13347503

EXERCISES:

1. Make a program that will graph the following parabolas where x ranges from -10 to 10 in increments of 0.1. Make each parabola a different color and put all the parabolas in the same figure or graph. You can do this by using the "hold" function (Use the "help" to learn how to do this). Use the "help plot" to find the code for the different colors and the "help legend" to show how to put the legend in the figure plot. The colors for each line are given below.

a. x2 - 6x + 5 black
b. -x2 - 4x - 3 blue
c. x2 + 6x + 8 red
d. 0.5x2 - 2x + 4 green

Do not forget to put a pause after this.

2. The decay equation for a radioactive isotope is given by Q(t) = Q(0)e-λt, where Q(0) is the initial quantity (at t=0), λ is the radioactive decay constant and t is the time. Carbon 14 has a decay constant λ = 0.00012097/year. Create a program that, if you had 15 gms of Carbon 14 at time 0, plots the following two figures side-by-side in one figure window (using the "Subplot" function):

  • the decay curve for time t = 0 to 1,000,000 years in steps of 1 year. Do not forget to label the axes with units (x-axis = years; y-axis = gms) and create a title called "Decay Curve As A Function Of Time" for the plot.
  • the curve with the x-axis in logarithmic scale (HINT: Look into the function "semilogx" for the graphing).

3.  In 2007 individuals in the United States of America paid the following income taxes. Write a program to calculate how much income tax a person will owe based on this information in the table below. The program should accept a total income figure from the user and calculate the income tax. 

Income

Tax

0-$7,825

10%

$7,826 - $31,850

$782.5 + 15% of the amount over $7,825

$31,851 - $77,100

$4,386.25 + 25% of the amount over $31,850

$77,101 - $160,850

$15,698.75 + 28% of the amount over $77,100

$160,851 - $349,700

$39,148.75 + 33% of the amount over $160,850

$349,701 - no limit

$101,469.25 + 35% of the amount over $349,700

In this program, the program will ask "What is your income?".  After you input the income, the program output is going to say "Your tax for this income is $????.??" (????.?? is whatever output the program computes based on the income input into the program and the table above).

 

Reference no: EM13347503

Questions Cloud

Hubspot is currently at a crossroads with management : hubspot is currently at a crossroads with management looking for rapid acceleration of sales and profits. in their
Developing a balanced scorecard explore the need for : developing a balanced scorecard explore the need for organisations to calculate and manage performance against
1 - utilizing the rat stereotaxic atlas in the course : 1 - utilizing the rat stereotaxic atlas in the course materials devise a surgical plan for implanting a michigan type
You will write functionsbull bnull basisatolbull brange : you will write functionsbull bnull basisatolbull brange basisatolthe function null basis takes a matrix a as input and
Exercises1make a program that will graph the following : exercises1.make a program that will graph the following parabolas where x ranges from -10 to 10 in increments of 0.1.
1 ra row your boatprepare a world with a boat a person : 1. ra row your boatprepare a world with a boat a person sitting in the boat an island and a pier located 25 meters from
Part onemultiple choices1 it is a concept where goods are : part onemultiple choices1. it is a concept where goods are produced without taking into consideration the choices or
The cost of capital for a firm can differ from the cost of : the cost of capital for a firm can differ from the cost of capital for each of its businesses. when a firm has multiple
Question ron the realtor is offered a job directly out of : question ron the realtor is offered a job directly out of real-estate school. he has a selection as to which way he

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  Problem consider a trapezoidal piece of polymer film as

problem consider a trapezoidal piece of polymer film as shown below. the parallel sides of the trapezoid are insulated

  In a shell-and-tube heat exchanger one fluid passes through

in a shell-and-tube heat exchanger one fluid passes through a central tube while another fluid flows through an outer

  1 we want to find the integral of a function at an

1. we want to find the integral of a function at an arbitrary location x from the origin.nbsp thuswhere ix0 is the

  Write a matlab function speed planetary n emesh first last

write a matlab function speed planetary n emesh first last arm that computes the speed of a given link in a

  1 this problem is intended to demonstrate some problems

1. this problem is intended to demonstrate some problems that can arise from the finite precision of numerical

  Create the following graph which contains a piecewise

create the following graph which contains a piecewise function where a line exists in the first interval a parabola in

  1 given the following actual cpu burst for a tasknbsp 6 4 6

1. given the following actual cpu burst for a tasknbsp 6 4 6 4 13 13 13 and an initial best guess at the burst as 10

  Problem 1nbsp use matlab to answer the following system of

problem 1.nbsp use matlab to answer the following system of linear equations2x y 3z 1 2x 6y 8z 3 6x 8y 18z 5

  Implementation in matlab under windows to open a named pipe

implementation in matlab under windows to open a named pipe and to read data from the pipe an other program writes into

  P1 write the commands that will create the following matrix

p1 write the commands that will create the following matrix. you can use only special matrix commandsp2 two cars

  1 let pnx be the lagrange interpolating polynomial of

1. let pnx be the lagrange interpolating polynomial of degree at most n that satis?es pnxi yi i 0 1 2 . . . n.write

  Q1 filter function form is y myfilterxba where x is

q1 filter function form is y myfilterxba where x is input y is output and a and b are the iir and fir

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