Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

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).

 

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9131867

Have any Question?


Related Questions in MATLAB

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As