Hi,
you can send the result of simulation in the workspace of matlab with a to workspace block
and after the simulation, you can posttreat the data
but, if you want to use the current time to do a calculation during the simulation, for example as the parameter in a gain block, you need to model differently.
Because a gain uses a value defined in his mask at the begining of the simulation, you can't change it.
you need to multiply your input by the inverse of the signal coming from your clock block (careful at t=0).