S-function out set

hi,
How to set the output of sfunction?

I want to output all the steps for x.

image

If you want to extend the S-function interface, here are some hints:

@FreyJo Thanks. I got it. :wink: