Fixes in M1 matlab scripts.