Sketching a zero-input response for an Electrical Engineering problem

조회 수: 6 (최근 30일)
Orlando Salas
Orlando Salas 2016년 12월 11일
편집: Orlando Salas 2016년 12월 11일
Hi everyone, I'm relatively new to MATLAB, so I don't know if anyone can help me. I'm trying to sketch the zero-input response for a system. The system can be described by
(E^2 - 1.56E + 0.81)y[k] = (E + 3)f[k]
with the following conditions: y[-1]=2, and y[-2]=1.
The following code is what I am trying to trouble shoot:
y=[1 2];
y=y';
k=-2:16;
k=k';
for m=1:length(k)-2
Y=1.56*y(m+1)-0.81 *y(m);
Yzi=[Yzi;Y];
end
stem(k,Yzi)
Does anyone know what I am doing wrong?

답변 (1개)

Star Strider
Star Strider 2016년 12월 11일
I have no idea how you’re supposed to solve it.
I am not certain what the assignment actually wants you to do. This would be my approach (in terms of powers of 1/z):
a = flip([1 -1.56 0.81]);
b = flip([1 3]);
yi = flip([1 2]);
k=-2:16;
f = filter(b,a,k,yi);
figure(1)
stem(k, f)
grid
But then I’m known to take liberties with problems I don’t understand.
  댓글 수: 3
Star Strider
Star Strider 2016년 12월 11일
The term ‘classical method’ leaves much to the imagination. It would help if you could describe it.
My inclination would be to use the z-transform of your equations, then take the inverse to solve the differential equation. It’s been decades since I‘ve dealt with difference equations and their solutions.
Orlando Salas
Orlando Salas 2016년 12월 11일
편집: Orlando Salas 2016년 12월 11일
Sorry about that, does the term term "natural-response" help? It's supposed to be similar to the zero-input response. I'm pretty sure that I am looking for yn[k]. My system of equations is supposed to satisfy Q[E](yn[k] + ytheta[k]) = P[E]f[k] when Q[E]yn[k]= 0. I know how to solve it manually, but I am wondering if it is possible to solve via MATLAB....
Edit: I forgot to mention that ytheta[k] represents a forced response rather than a zero-state response.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by