문제

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