1.Use Comments(%)2.Functions:Only One function in each file;the filename(.m) and the name of the function must be the same!3.always include these lines in your script:clear\clc\close all