It would depend upon disk speed, disk controller, bus speed, system load, cache behaviour, operating system filesystem performance, number of library calls, whether the code is at the MATLAB level or compiled in, amount of data read at one time, how much processing has to be done.
If the data is not already on an ssd then put it on an ssd.
