Going from i5 to i7 will literally make no difference in any of those. The only thing you really need, especially for matlab, is a boatload of ram. Again though, if you've got some hardcore montecarlos or something, doing it on a laptop is idiotic in the first place.
A laptop may be "idiotic" but not everyone wants to run code on a work computer, especially if it's something you're doing on the side. However, I only pointed that out because you went from a laptop to a cloud computing platform like AWS. These dinky laptops from Apple may not do the job but there are others out there that give you ample amounts of ram, coupled with PCIE ssds and a gpu that can run with workstations.
