Update solve.m