Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask MATLAB Expert

EXERCISES:

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

problem 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, plotsthe 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 curvewith the x-axis in logarithmic scale (HINT: Look into the function “semilogx” for the graphing).

Do not forget to put a pause after this.

problem 3: In 2007 individuals in the United States of America paid the following income taxes. prepare a program to find out 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 find out the income tax.

751_calculating income tax.jpg

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.:- M9713

Have any Question? 


Related Questions in MATLAB

Plotting and computer animation in matlabinstructions for

Plotting and computer animation in MATLAB Instructions: For each of the following exercise, create an M-file to store the MATLAB commands. Copy and paste the M-file into a text document. For problems 1 and 2, include in ...

Problem 1 10pts the csu-chill radar made observations of

Problem 1 [10pts.]: The CSU-CHILL radar made observations of the Ponnequin Wind Farm located on the boarder of Wyoming and Colorado near I-25. The wind farm is approximately 62 km away from the radar. Complex valued digi ...

Use matlab to solve the following equations please i plot

Use Matlab to solve the following equations. Please (i) plot the solution as a function of t for t  ∈ [0, 100]. (ii) draw the phase diagram of the ODE. 1. dy/dt = y 2 + y with y(0) = 1         dy 1 /dt = y 2 2.           ...

Problem -tom cat is chasing jerry mouse the initial

Problem - Tom cat is chasing Jerry mouse the initial distance between them is S 0 = 100m. Tom runs V c = 4-at m/s (negative accident) Jerry's velocity depends on the distance between Tom& Jerry V = Vmax - Ks (3-0.025 m/s ...

Question 1backgroundclimate change is a change in global or

QUESTION 1 Background Climate change is a change in global or regional climate patterns, in particular a change apparent from the mid to late 20th century onwards and attributed largely to the increased levels of atmosph ...

Car parking systema building of 10 floors is used for

CAR PARKING SYSTEM A building of 10 floors is used for parking cars. The area of each floor can be used for parking 100 cars. An automatic parking system is used to detect which parking slot is free at each moment. So, t ...

Reports of projectproblem design a fourbar grashof

REPORTS OF PROJECT PROBLEM: Design a fourbar Grashof crank-rocker to give? (Everyone will determine the terms given by professor) of rocker rotation with equal time forward and back, from a constant speed motor input. 1- ...

1 calculate the following for the function f x e-3x -

1) Calculate the following for the function f (x) = e -3x - 2x a. Calculate the derivative of the function by hand. Write a MATLAB function that calculates the derivative of this function and calculate the derivative at ...

Matlabproject descriptionwrite a mileage per gallons and

MATLAB Project description: Write a mileage per Gallons and miles per dollar calculator program using two functions, one to calculate MPG and one to calculate MPD. The application will prompt the user to type the odm rea ...

Question 1 a what is the period of the forced oscillation

Question 1. (a) What is the period of the forced oscillation? What is the numerical value (modulo 2Π) of the angle α defined by? (b) In this question you are asked to modify the file LAB06ex1.m in order to plot the compl ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro