y[n] = x[n] - x[n-1] x[n-2] I need to find a) Find the transfer function. b) Give the impulse response. d) Sketch the frequency respo
Ältere Kommentare anzeigen
I need to find a) Find the transfer function. b) Give the impulse response. d) Sketch the frequency response. How to do it?
[n] = x[n] - x[n-1] + x[n-2]
4 Kommentare
Steven Lord
am 6 Apr. 2020
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Rhea Shah
am 6 Apr. 2020
Steven Lord
am 6 Apr. 2020
Okay. What is your specific question about where you're having difficulty?
Rhea Shah
am 7 Apr. 2020
Antworten (1)
Birdman
am 7 Apr. 2020
Try this:
z=tf('z',0.001);
Gz=1-z^-1+z^-2;
%%transfer function
Gs=d2c(Gz,'tustin')
%%impulse response
figure(1);
impulse(Gs)
%%frequency response
figure(2);
bode(Gs)
Kategorien
Mehr zu Get Started with Control System Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!