Question: With Matlab: Problem #1 (20 points): Write a script in Matlab and save it as .m file with name HW16_1. The script will execute the

With Matlab:

Problem #1 (20 points): Write a script in Matlab and save it

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)=x2x + x5 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||..

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Problem 1 File name HW161m Write a script in Matlab and save it as m file with name HW161 a Let the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!