Preliminary Thermal Analysis with MATLAB