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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top