Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top