Write a user-defined MATLAB function for the following math function: y(x) = (- 0.2x3 + 7x2)e-0.3x The
Question:
y(x) = (- 0.2x3 + 7x2)e-0.3x
The input to the function is x and the output is y. Write the function such that x can be a vector (use element-by-element operations).
(a) Use the function to calculate y(-1.5) and y(5).
(b) Use the function to make a plot of the function y(x) for -2 < x < 6.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (22 reviews)
Script file clear clc dispPart a x15 5 ymathx dispThe test valu...View the full answer
Answered By
Sidharth Jain
My name is Sidharth. I completed engineering from National Institute of Technology Durgapur which is one of the top college in India. I am currently working as an Maths Faculty in one of the biggest IITJEE institute in India. Due to my passion in teaching and Maths, I came to this field. I've been teaching for almost 3 years.
Apart from it I also worked as an Expert Answerer on Chegg.com. I have many clients from USA to whom I teach online and help them in their assignments. I worked on many online classes on mymathlab and webassign. I guarantee for grade 'A'.
4.90+
3+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Finance questions
-
Write a user-defined MATLAB function for the following math function: r() = 4cos(4sin) The input to the function is (in radians) and the output is r. Write the function such that e can be a vector....
-
A two-dimensional state of stress at a point in a loaded material in the direction defmed by the x-y coordinate system is defined by three components of stress xx yy, and xy. The stresses at the...
-
Write a user-defined MATLAB function that determines the angle that forms by the intersection of two lines. For the function name and arguments, use th=anglines (A,B,C). The input arguments to the...
-
In Exercises 1126, determine whether each equation defines y as a function of x. x + y = 16
-
In March 2012, President Obamas approval ratings were the highest they had been in almost a year: 46% of those that Gallup sampled approved of the job Obama was doing as president...
-
Exhibit 9.21 provides information (totals) concerning the operations of the Maxum Company for the current period. The firm has no inventories. Prepare a flexible budget for thecompany. EXHIBIT 9.21...
-
The equation of motion of a nonlinear system is given by \[\ddot{x}+c \dot{x}+k_{1} x+k_{2} x^{2}=a \cos 2 \omega t\] Investigate the subharmonic solution of order 2 for this system.
-
The total expenses of a hospital are related to many factors. Two of these factors are the number of beds in the hospital and the number of admissions. Data were collected on 14 hospitals, as shown...
-
The company has spent 5.75m in the last twenty-four months on this unique smart television set called the Boxe, and initial tests carried out have confirmed its technical viability and the directors...
-
Green Manufacturing is a traditional manufacturing company located in the midwestern United States. The companys operations manager is developing a strategy to become more CSR-oriented. In an effort...
-
Write a program in a script file that finds the smallest even integer that is divisible by 13 and by 16 whose square root is greater than 120. Use a loop in the program. The loop should start from 1...
-
Write a user-defined function that calculates grade point average (GPA) on a scale of 0 to 4, where A = 4, A- = 3.7, B+ = 3.3, B = 3, B- = 2.7, C+ = 2.3, C = 2, C- = 1.7, D+ = 1.3 D = 1, and E = 0....
-
Calculate the standard heat of formation of the compound ICl (g) at 25oC. Table s | 14 39 95 45 72 1 1419 6847064968 77386 42222 34 985 0302 121 Si H C O 437 490 9 31222241122 122221 25735 375859609...
-
Smith Company inventory records indicate the following transactions for October. Smith uses a perpetual Inventory system : October 1 Beginning inventory 2,400 units @$5.00 9 Purchase 5,600 units...
-
What is Dodge motors 10-k report look like over the past 2 years?
-
What is a compulsory license, and what is the economic rationale behind compulsory licensing? On what grounds has Lee Pharma applied for a compulsory license for Saxagliptin? Is Lee Pharma justified...
-
How could you coach or mentor aspiring leaders to better appreciate diversity and inclusion?
-
. 3. Use iteration to guess an explicit formula for the sequence: tk = tk-1 + 5k+7k+ 3, for all integers k 1, where t = 0 (using the formulas from
-
Sabonis Cosmetics Co. purchased machinery on December 31, 2024, paying $50,000 down and agreeing to pay the balance in four equal installments of $40,000 payable each December 31. An assumed interest...
-
In the figure, two loudspeakers, separated by a distance of d1 = 2.63 m, are in phase. Assume the amplitudes of the sound from the speakers are approximately the same at the position of a listener,...
-
Change each of the following percents into a decimal. (a) 185% (b) 7.5% (c) 0.4% (d) 0.025% (e) 1 % (f) % (g) 162 % (h) 11 % (i) 8 1/3% (j) 83 1/3% (k) 266 2/3% (l) 10 3/8%
-
A marina listed a yacht at 33 1/3% above cost. At the end of the season, the list price was reduced by 22.5% and the yacht was sold for $15 500. What was the cost of the yacht to the marina?
-
A & E Holdings profit and loss statement showed a net income of 9 3/4% of revenue or $29 250. Fifteen percent of net income was paid in corporation tax and 75% of the net income after tax was paid...
-
Three not-for-profit organizations operate separately in Sunland City. The most established entity, Sunland Support, has been around for over 100 years and generates by far the largest amount of...
-
E. Chrissy's Vases is a boutique selling artisan vases. The boutique purchases several styles of vases from one source. The cost of the vases to the boutique is $10 each. All other costs for...
-
Hampton Muffins sells its muffins to restaurants and coffee houses for an average selling price of $26 per case. The following information relates to the budget for Hampton Muffins for this year (all...
Study smarter with the SolutionInn App