I’m not certain exactly what you want to do, but starting by reading the documentation on Functions seems to me to be appropriate.
You likely want to create a function file for your simulation, that takes those data as input arguments.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!