42+ How To Write Functions In Matlab Viral. Then, add code to the file. Often, you store a function in its own file. MATLAB tutorial Functions with one input and one output YouTube from www.youtube.com Select the highlighted button to open the script window. F (1) note that you do not include the (y) on …