Homework 2, Problem 2, 4.25(b)
cls; clear all; close all;
syms t W; %symbolic variables
t: time, W: frequency
xt = 1 + piecewise(t<-1, -1, -1<=t<=0, 0, 0<t<=1, 1, 1<t<=2, -2<t<=3, 1, t>3);
%<-complete blanks in red first before running code.
%PART b
X = int(xt, -1, 3);
disp('4.25 Part b X = ')
%Show completed MATLAB code above + copy/paste result from the Command window
Solve 4.25 (c) two different ways:
i. by hand - Using this equation:
1 xt = 2T X(jw)ejwtdw
-Find x(0) from graph and plug it in answer:
1 X(jw)dw or Xjwdw = 2x0
-Type answer below:
Answer: