Domanda

How can I insert a difference equation in Xcos diagram, like:

y(k+1) = y(k)[a sqrt(y(k-1))] + b *y(k-1) ;

?

Thanks, Best Regards

EDIT Finding on Internet I think that the best way to address my problem is use: scifunck block.

È stato utile?

Soluzione

I would actually do something like that:

Xcos screenshot

where the delay blocks are set to the sample time of your model (I assume we are dealing with discrete signals here) and appropriate initial conditions. Make sure to choose a discrete solver and use the same (appropriate for your problem) sample time for the model and the delay blocks.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top