%% NOTE: this template should only be used for FUNCTIONS!! %% Use script_template.m for scripts. function [output1, output2] = function_name (input1, input2) %FUNCTION_NAME performs the following function... % [OUTPUT1, OUTPUT2] = FUNCTION_NAME (INPUT1, INTPUT2) computes OUTPUT1 % and OUTPUT2 as a function of INPUT1 and INPUT2... % (provide a simple description of what the function does) % % (next, list all the inputs and outputs and provide a short definition. % don't forget to include the units!!) % Inputs: % INPUT1: a vector of ... expressed in [units] % INPUT2: a scalar ... expressed in [units] % % Outputs: % OUTPUT1: a vector of ... expressed in [units] % OUTPUT2: a matrix of ... expressed in [units] % % % Assumptions: % - (list all assumptions that were made in the implementation) %% %% ME 2016 Section A-C (list your section) %% Fall 2006 %% %% AUTHOR: Your Name %% output1 = the_code_for_your_function; return;