Example: Function call: variable(x3).
Variable is calculated at point_1:
component_name |
value |
x3 |
1 |
Example: calculation of variable :
MATLAB code (./PSG/Example/Func_value_variable.m) for function calculation:
%Create the PSG point 'point_1'(structure containing header and matrix body) and pack it to structure 'iargstruc_arr':
iargstruc_arr = point_pack('point_1', 1, {'x3'});
%Calculate avg function at point 'point_1':
[val] = mpsg_function_value('variable(x3)','point_1',iargstruc_arr);
%Display function value:
disp(sprintf('mpsg_function_value = %g', val));
Program output:
mpsg_function_value = 1