With Matlab: Problem #1 (20 points): Write a script in Matlab and save it as .m file
Fantastic news! We've Found the answer you've been seeking!
Question:
With Matlab:
Transcribed Image Text:
Problem #1 (20 points): Write a script in Matlab and save it as .m file with name HW16_1. The script will execute the following tasks: a) Let the mathematical function f(x) be defined as: f(x) = exp(-0.5x) cos(10x) Use fzero() to find the zero of f(x) @ x0=0.1. b) Find the roots of the following polynomial using roots command g(x)=x²2x³ + x−5 Submit the script as a .m file. (Note: Script is a list of commands which is different from functions) Problem #2 (30 points) Let the two vectors x & y and the matrix z be defined as follows: 1 2.2 [-2.41 1.5, z = L0.35) -1.35 x = , y = [-1.2 2.2 4.11 2.1 -3.2 1.9 3.1 1.2 3.2 Write a script in Matlab and save it as .m file with name HW16_2. The script will execute the following tasks: 1- Enter the vectors x &y and the Matrix z into the script. 2- Evaluate L2=||x||₂ 3- Evaluate L1 = ||x||₁ 4- Evaluate Linf = ||x|| co 5- Evaluate the dot product N=(x, y) 6- Evaluated the angle in degrees between the vectors x & y 7- Evaluate M2 = ||2||2 8- Evaluate M1 = ||2||₁ 9- Evaluate Minf = ||z||.. Problem #1 (20 points): Write a script in Matlab and save it as .m file with name HW16_1. The script will execute the following tasks: a) Let the mathematical function f(x) be defined as: f(x) = exp(-0.5x) cos(10x) Use fzero() to find the zero of f(x) @ x0=0.1. b) Find the roots of the following polynomial using roots command g(x)=x²2x³ + x−5 Submit the script as a .m file. (Note: Script is a list of commands which is different from functions) Problem #2 (30 points) Let the two vectors x & y and the matrix z be defined as follows: 1 2.2 [-2.41 1.5, z = L0.35) -1.35 x = , y = [-1.2 2.2 4.11 2.1 -3.2 1.9 3.1 1.2 3.2 Write a script in Matlab and save it as .m file with name HW16_2. The script will execute the following tasks: 1- Enter the vectors x &y and the Matrix z into the script. 2- Evaluate L2=||x||₂ 3- Evaluate L1 = ||x||₁ 4- Evaluate Linf = ||x|| co 5- Evaluate the dot product N=(x, y) 6- Evaluated the angle in degrees between the vectors x & y 7- Evaluate M2 = ||2||2 8- Evaluate M1 = ||2||₁ 9- Evaluate Minf = ||z||..
Expert Answer:
Answer rating: 100% (QA)
The image youve uploaded contains two separate problems that ask for creating scripts in Matlab to perform certain tasks For Problem 1 the script woul... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Two systems with transfer functions are connected in parallel. (a) Use MATLAB to determine the transfer function H(z)of the over-all system. (b) Use the function tf2ssto obtain state-variable...
-
Given a unity feedback system with the forward-path transfer function use MATLAB to represent the closed-loop system in state space in a. phase-variable form; b. parallel form. 8 G(s) %3D S(s+ 8)(s+...
-
SOLVE WITH MATLAB AND PROVIDE THE CODE Plot the surface of a function , when 2 x 2 and 2 y 2. Find the rate of change of the function direction of x-axis and y-axis at the point (0.6, -1.2) by...
-
Dakota Company had net sales ( at retail ) of $ 1 4 4 , 0 0 0 . \ table [ [ , At Cost,At Retail ] , [ Beginning inventory,$ 3 3 , 3 0 0 , $ 6 5 , 6 0 0 es Dakota Company had net sales (at retail) of...
-
This chapter begins by discussing the global competition faced by manufacturing firms. Identify two companies in your local areaone that has thrived in a global market and one that has failed....
-
__________ The standard normal distribution has mean zero and variance 2 .
-
Redesign the fractionator of Example 6.8 using a random packing. The column is to be packed with 50-mm metal Pall rings. Determine the diameter of the tower, the height of packing in the stripping...
-
You are the digital marketing director for High West fashions, a regional clothing company that specializes in custom t-shirts. Your company has decided to launch an online advertising campaign that...
-
An 85 kg man is completing a workout with TRX suspension straps. Holding this position in static equilibrium he experiences a pulling force on his hands of 600 N at an angle of 160 o relative to the...
-
Suzi Nomro operates Watercraft Supply Company, an online boat parts distributorship that is in its third year of operation. The following income statement was prepared for the year ended October 31,...
-
what do meeteren and bassens mean by describing world cities as obligatory passage ponts for the relatively assured realization of capital ?
-
Ian Maxwell is the chief investment officer for Glasgows municipal workers pension funds (GMWF). He is intrigued by the high-yielding sovereign debt issued by PIIGS countries. Most notably, Spain...
-
How is job costing in service organisations different from job costing in manufacturing organisations?
-
Consider two fictional economies, one called the domestic country and the other the foreign country. Given the transactions listed in (a) through (g), construct the balance of payments for each coun-...
-
Washington state is the largest producer of apples in the United States. In 2018, farms in Washington produced 171 million bushels of apples, nearly five times more than the next highest producing...
-
Over the last three years, Christmas tree prices have increased from an average of $35 per tree to over $75 per tree. How would a Christmas tree farm and the overall industry respond to the price...
-
The following table presents sales forecasts for Golden Gelt Giftware. The unit price is $40. The unit cost of the giftware is $25. Year 1 2 3 4 Thereafter Unit Sales 22,800 34,000 18,000 5,000 0 It...
-
Find the center of mass of a thin triangular plate bounded by the y-axis and the lines y = x and y = 2 - x if (x, y) = 6x + 3y + 3.
-
Lisa Sizemore, a taxpayer in the 10-15 percent tax bracket, purchased stock as an investment on July 11, 2011. She sold the stock on July 9, 2012, 2 days before qualifying for the long-term holding...
-
Sally and Charles Heck received the following dividends and interest during 2012: Assuming the Hecks file a joint tax return, complete Schedule B of Form 1040 (on page 2-33) for them for the 2012 tax...
-
Scott Butterfield is self-employed as a CPA. He uses the cash method of accounting, and his Social Security number is 644-47-7833. His principal business code is 541211. Scott's CPA practice is...
-
Repeat problem 41 with the specimen of size \(100 \times 100 \times 10 \mathrm{~mm}^{3}\) and the dimensions of the cavity \(104 \times 104 \times 9 \mathrm{~mm}^{3}\). Elastic constants of the...
-
Repeat problem 41 with elastic constants of the plastic as \(E=10 \mathrm{GPa}\) and \(v=0.485\). Problem 42: A rectangular plastic specimen of size \(100 \times 100 \times 10 \mathrm{~mm}^{3}\) is...
-
A rectangular plastic specimen of size \(100 \times 100 \times 10 \mathrm{~mm}^{3}\) is placed in a rectangular metal cavity. The dimensions of the cavity are \(101 \times 101 \times 9...
Study smarter with the SolutionInn App