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?

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 15 de Abr. de 2013

0 votos

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

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Preguntada:

el 15 de Abr. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by