Question

From the book Practical Signals Theory with MATLAB application (RICHARD J. TERVO) Chapter four problem 4.3:...

From the book Practical Signals Theory with MATLAB application (RICHARD J. TERVO)

Chapter four problem 4.3:

Consider the signal a(t)=cos(t) and the signal b(t), which is an even square wave with period 2? seconds and amplitude going +or- 1V

(a) Use the signal inner product to find the best approximation to a(t) in terms of b(t). In other words, find B to optimize the approximation a(t)=Bb(t).

(b) Use the signal inner product to find the best approximation to b(t) in terms of a(t). In other words find A to optimize the approximation b(t) =Aa(t).

(c) Should you expect A=1/B?   Why or why not? Discuss the difference between the values A and B found above.

PLEASE PLEASE SHOW ALL STEPS! i AM NEW TO SIGNALS

0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc; clear; close all;

% a(t) = cos(t);
% b(t) is a function square wave with a time period of 2.
% the inner product for approximation of a(t) = Bb(t).
% B = integral of (a(t)*b(t)) / integral of (b(t)^2).
p = integral(@(t) cos(t),0,0.99);
q = integral(@(t) -cos(t),1,2);
r = integral(@(t) cos(t).*cos(t),0,2);
% (p+q) = integral of (a(t)*b(t))
B = (p+q)/r

% the inner product for approximation of b(t) = Aa(t).
% B = integral of (a(t)*b(t)) / integral of (a(t)^2).
s = 2; % integral of (a(t)^2).

A = (p+q)/s

Add a comment
Know the answer?
Add Answer to:
From the book Practical Signals Theory with MATLAB application (RICHARD J. TERVO) Chapter four problem 4.3:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • SIGNALS AND SYSTEMS: PLEASE UPLOAD MATLAB CODING FOR QUESTIONS. 1. In class we found that the...

    SIGNALS AND SYSTEMS: PLEASE UPLOAD MATLAB CODING FOR QUESTIONS. 1. In class we found that the Fourier series of a unit amplitude square wave of period 2 seconds was given by (a) Show that this series can be rewritten as 0o 2 (b) Produce plots of x (t) for n-1 to N for N-1,3,9,19,and 199, that is, truncate the infinite sum to these values of N and plot the result. Remember that only odd terms are included in the sum...

  • Yes, this is one problem. Please solve ALL PARTS. Guaranteed thumbs up for the person who solves it. 3 1. Photodiode...

    Yes, this is one problem. Please solve ALL PARTS. Guaranteed thumbs up for the person who solves it. 3 1. Photodiode amplifier circuit You are designinga CF photosensor circuit for a light detection and ranging LiDAR) system in autonomous vehicles. The circuit utilizes a transimpedance amplifier to convert low-level RF photodiode current signal to a usable voltage output. It consists of a photodiode, an amplifier, and feedback capacitor/resistor pair as shown in Figure 1. We will derive simple equations to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT