I would say that your linear set of instructions will be represented as a string representing one of a population. You can then apply standard GA of exploration plus exploitation with mutation to achieve what you want.
I've never used matlab with GA programming, but I'll look into it.