david_garrison·قبل 8 سنوات·discussYou can define functions in a MATLAB script. That was added in R2016b (september, 2016)