blob: 8e16eca6dc8cc90ecde95a703cc0648e80276fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
% Matlab example script 2
% Comments precended with arbitrary whitespace (spaces or tabs)
%Call matlab_function function which resides in the same directory
value1 = 5 % semicolon at end of line is not mandatory, only suppresses output to command line.
value2 = 3
% Calculate sum of value1 and value2
result = matlab_function(value1,value2);
disp('called from script')
disp(result);
|