I'm writing a MATLAB function block which would like to know how long the simulation it contains is to be run. I.e. I would like to set a variable in my MATLAB function block to be equal to whatever number the user chose as simulation end time (10 by default).
I would guess / hope that this is a simply accessible property of some object or another, but I cannot seem to find out what is it called or where to read it off.
Ideally I would like to include this block in a library to be used in different models, so it shouldn't need to have any prior information about the model it is used in.
Best Answer