Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Develop a MATLAB script that plots the results of two exponential decay functions: A. Store the value 1000 under the variable 'n'. 3

4. Develop a MATLAB script that plots the results of two exponential decay functions: A. Store the value 1000 1. Initiate a new title. a. The string should be 'Trigonometric-Exponential Decay'. b. The font size should ndow Function V Begin Simulation... Plot generation complete! ===========es Simulation Complete! (0.4e5 

 
 

4. Develop a MATLAB script that plots the results of two exponential decay functions: A. Store the value 1000 under the variable 'n'. 3 B. Define a 1 x n, row vector that ranges from 0 radians to 2 radians divided into 'n' equally-spaced partitions using the 'linspace' function and save the array under the variable 'x'. C. Allocate memory for a 1 x n, row vector using the 'zeros' function and store the array under the variable 'y'. D. Allocate memory for a 1 x n, row vector using the 'zeros' function and store the array under the variable 'z'. E. In a for-loop, calculate the value of 'y' for every value of 'x' using the following equation: y=sin(x) e F. In the same for-loop, calculate the value of 'z' for every value of 'x' using the following equation: z = cos(x) e* G. Initiate a new window using the 'figure' function and store the window under the variable 'Window'. a. The background color should be white. b. The name should be 'Trigonometric Functions with Exponential Decay'. C. The number title should be turned off. H. Initiate a new axis using the 'axes' function and store the axes under the variable 'Axes'. a. The font name should be 'Arial'. b. The font size should be 12. C. The font weight should be "Bold'. d. The next plot should be 'Add'. e. The parent should be Window. f. The x-grid should be turned on. g. The y-grid should be turned on. h. The x-limits should be [0,360]. i. The y-limits should be [-1,1]. j. The x-ticks should be 0:30:360. The y-ticks should be -1:0.2:1. k. 1. Initiate a new title. a. The string should be 'Trigonometric-Exponential Decay'. b. The font size should be 20. c. The parent should be Axes. J. Initiate a new x-label. a. The string should be 'x (\circ)'. b. The font size should be 16. c. The parent should be Axes. K. Initiate a new y-label. a. The string should be 'Function Value'. The font size should be 16. b. c. The parent should be Axes. L. Convert all the values of the 'x' array from radians to degrees. M. Initiate a new plot that shows the result of 'y vs. x'. a. The color should be black. b. The line style should be '-. C. The line width should be 2. d. The markers should be turned off. e. The parent should be Axes. N. Initiate a new plot that shows the result of 'z vs. x'. a. The color should be red. b. The line style should be '-'. c. The line width should be 2. d. The markers should be turned off. e. The parent should be Axes. 4 O. Initiate a new legend. a. The strings should be ('sin(x) e^(-x)', 'cos(\theta) e^(-x)}. b. The font size should be 16. c. The location should be 'NorthEast'. d. The parent should be Window. The command window output should look as shown in Figure 4. ndow Function V Begin Simulation... Plot generation complete! ===========es Simulation Complete! (0.4e5 seconds) fx> Figure 4: Problem 4 Command Window Output The plot should look as shown in Figure 5. Trigonometric-Exponential Decay *D Figure 4: Problem Figure Output "(x)

Step by Step Solution

3.58 Rating (172 Votes )

There are 3 Steps involved in it

Step: 1

Answer A Store the value 1000 under the variable n n 1000 B Define a 1 x n row vector that ranges from 0 radians to 2 radians divided into n equallysp... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linear Algebra A Modern Introduction

Authors: David Poole

3rd edition

9781133169574 , 978-0538735452

More Books

Students also viewed these Programming questions

Question

What were the consequences for Piper and the students? ? p-698

Answered: 1 week ago

Question

Discuss the roles of metacognition in learning and remembering.

Answered: 1 week ago