Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer this MATLAB question when able. Thanks. Exercise 4.3 Write an M-file script that would compute and generate the subplots for the input signal

Please answer this MATLAB question when able. Thanks.
image text in transcribed
image text in transcribed
Exercise 4.3 Write an M-file script that would compute and generate the subplots for the input signal x(n) and the output signals y1(n) and y2(n) as results of implementing the following systems: System 1: n(n+ 1) y2(n)-x(n) . tabl 10 x(n) n)x(n) t . System 2: 10 Let x (n) be the same input signal as given in Example 4.2. Save your work as 'exer_4.3.m. Generatea subplot of signals x (n), y1 (n) and y2 (n). List down your M-file commands in the space provided below. Example 4.2 Let us now apply shifting operations to the unit ramp sequence. Suppose we want to apply a delay equal to 10 time units, and apply an advance equal to 10 time units to our unit to the output variables 'y1' and y2, respectively. The script 'script 4 2.m', as shown in Fig. 4.4 below, can accomplish the required task. ramp sequence, and store the results * script for Bxample 4.2 n _ 30:30; %time vector x [zeros (1,30), 0:30); %unit ramp sequence 2 4- ylr(zeros (1,10), x (1 : end-10)); %apply delay of 10 5- y2 (x (11 : end), zeros (1,10)); %apply advance of 10 6 7-title('Unit Ramp Sequence) 8-subplot (3,1,2), stem (n,yl), axis (I-30,30,0,30]) 9-title ('Delayed Unit subplot (3,1,1),stem (n, x), axis ([-30,30,0,30]) Ramp Sequence') 10subplot (3,1,3),stem (n, y2), axis(-30,30,0, 30]) title('Advanced Unit Ramp Sequence") Fig. 4.4. The script 'script 4_2.m' for Example 4.2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions