% File: program.m (This is a template for a Matlab program (script))  
%
% Purpose
%
% Whatever your program is intended to do.
%
% Pre and Post Conditions
%
% Existance of files (including formats), etc.
%
% Input(s)
%
% User or file inputs. Always include units. Include format for file 
% input. 
%
% Output(s)
%
% Screen or file outputs.  Always include units. Include format for file
% ouput.
%
% Selected Variables Used (optional)
%
% List and describe critically important variables used with units.
%
% Special Notes (as needed)
%
% Other information the user/modifier of this function should know.
%
% Revision History
%
% Last modified 12/4/08 by Dr. C. S. Tritt
%
% Added Special Notes comments, changed output format.
%
% Created xx/xx/xx by Your Name

% I recommend clearing the workspace at the start of all programs.
clear;

%Prompt user for input.
x = input('Enter a value (x): ');

%Call template function.
y = template(x);

%Display the result. Don't forget the newline.
fprintf('Template returned: %0.4f\n', y);