How to plot magnitude and phase spectrum of the function
Mostra commenti meno recenti
Hye i really confuse on how much method to write the code to plot magnitude and phase. Below is my function.
X(z)=z / (z-1)^2
Any idea how to start beside plot?
Risposta accettata
Più risposte (2)
Deepak Gupta
il 16 Giu 2020
Star Strider has given the answer but just FYI:
X = tf([1 0], [1 -2 1]);
bode(X), grid
This will work too.
You can know more about bode plots here:
3 Commenti
MUHAMMAD RAHMAT ASMAT
il 16 Giu 2020
Star Strider
il 16 Giu 2020
Note that this creates a s-domain function, not a z-domain function.
Deepak Gupta
il 16 Giu 2020
It creates z-tranfer too. If we give sampling period 0.1s then you will get same result. i.e. tf([1 0], [1 -2 1], 0.1)
Usman
il 4 Dic 2023
0 voti
Validate magnitude and phase spectrum for x(t) = e−atu(t) for a > 1 and 0 < a < 1. write code for matlab
Categorie
Scopri di più su Pole and Zero Locations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
