Initial value for a transfer function
36 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aizat BIN AZMI
el 29 de Abr. de 2016
Comentada: Parth Chandak
el 20 de Oct. de 2017
Hello, I'm working on a simulink model of a heat exchanger. I already got the transfer function of my system. It is a second order transfer function. However, i have a slight problem where i should start at 50 at t=0 and end at Tref(value that i want, for example 20). I know that i can convert my transfer function to state-space block where i can define the initial value but it did not work.


In the state-space block I put initial condition to 50. But as you can see in the result, it starts at 0. Thank you to anyone that can help.
So if anyone can help, i really appreciate it.
-Aizat
4 comentarios
Azzi Abdelmalek
el 29 de Abr. de 2016
What is the value of your vector C, in your state space model?
Respuesta aceptada
Azzi Abdelmalek
el 29 de Abr. de 2016
Editada: Azzi Abdelmalek
el 29 de Abr. de 2016
From your second order state space model,you have
y=C*[x1;x2]
Then if you want to set initial conditions to your states x1 and x2, you should type a vector [x10;x20], then the initials condition for y will be:
y0=C*[x10;x20]
5 comentarios
Parth Chandak
el 20 de Oct. de 2017
How to model the system after you get y and y0? Can you explain that?
clear all
clc
w = 1;
z = 0.2;
x_0 = [1;1];
xdot_0 = [1;5];
num = [0,0,w^2]
den = [1,2*z*w,w^2]
[A,B,C,D] = tf2ss(num,den)
y_0 = C*x_0
ydot_0 = C*xdot_0
sys= ss(A,B,C,D);
H=tf(sys);
stepplot(H)
Más respuestas (0)
Ver también
Categorías
Más información sobre Additional Math and Discrete en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!