MATLAB Writing for Reservoir Modeling