forked from IoSR-Surrey/MatlabToolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctionTemplate.m
More file actions
46 lines (37 loc) · 1.21 KB
/
Copy pathfunctionTemplate.m
File metadata and controls
46 lines (37 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function [output_args] = functionTemplate(input_args)
%FUNCTIONTEMPLATE Summary of this function goes on this H1 line
%
% Detailed explanation goes here
%
% [OUTPUT_ARGS] = FUNCTIONTEMPLATE(INPUT_ARGS) describe the inputs and
% outputs, and provide any other relevant information.
%
% LIST OTHER WAYS OF CALLING THE FUNCTION and give a description of the
% different variables and how they affect the output. Provide any other
% relevant information.
%
%<-------------------- column is 75 characters wide ---------------------->
%
% Example(s)
%
% [Example 1: What this example does]
%
% % This is an example:
% [output_args] = functionTemplate(input_args)
%
% [Example 2: What this example does]
%
% See also RELATED_FUNCTION, SIN, COS.
% Copyright 2016 University of Surrey.
% code is indented
function this_is_a_nested_function
%THIS_IS_A_NESTED_FUNCTION That also needs a description
% it has access to the parent function's variables
end
end
function [output_args] = my_local_function(input_args)
%MY_LOCAL_FUNCTION Summary of this function goes here
%
% Detailed explanation goes here
% code is also indented
end