1 %>
this is the modell of a
function with comments behind of the commands
2 %> @param Parameter parameter of the
function
3 %> @
return a
return-value
5 function [ ReturnValue ] = m_function(Parameter)
7 LokalVariable_1 = Value1; %variable-comment 1
8 LokalVariable_N = ValueN; %variable-comment N
10 operation_1(LokalVariable_1, Parameter); %operation-comment 1
11 LokalVariable_2 = operation_2(LokalVariable_N);
14 if(LokalVariable_1 == LokalVariable_2) %statement-comment for true
15 ReturnValue = DefaultValue(); %operation-comment for true
16 else %statement-comment for false
17 while(ParameterStatment == 1) %loop-comment
18 ReturnValue = operation_3(); %operation-comment 3
21 return; %comment
return-line