Initial value in a A*x=b system equation

I have a linear system of equation, Ax=b and one of these parameter change in each step. I used in Simulink, a Matlab function block with three inputs: one from a constant block with value set to matrix A, another from a constant block with value set to s and a third one whit variable signal y
The function inside the block was:
function y1 = fcn(y,s,A)
b=[y ; 0 ; s ; 0]
y1 = A\b;,
Now, one of the values of y1, have an initial value; how can I put the restriction to the initial value?

回答(1 个)

Pass y1 through a unit delay bloc with initial value set to your initial value

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息

提问:

2013-4-15

Community Treasure Hunt

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

Start Hunting!

Translated by