Update of application code

This commit is contained in:
parent 7f62c6d433
commit ad15c97e50

View File

@ -5,20 +5,18 @@
%% Sample function created for demonstration of creating custom applications functionality %% Sample function created for demonstration of creating custom applications functionality
%% See also https://docs.cyfronet.pl/display/ISDOC/Creating+Custom+Applications %% See also https://docs.cyfronet.pl/display/ISDOC/Creating+Custom+Applications
%% %%
function sampleApp1(inVector, multiplicator) function outVector = sampleApp(inVector, multiplicator)
%% sampleApp1 function that multiplies a vector of number values by a multiplicator and plots the result %% sampleApp function that multiplies a vector of number values by a multiplicator and plots the result
% %
% Inputs: % Inputs:
% - inVector - vector of double number values % - inVector - vector of double number values
% - multiplicator - scalar number by which the inVector will be multiplied % - multiplicator - scalar number by which the inVector will be multiplied
% %
% Outputs: % Outputs:
% - PNG image file 'multipliedVec.png' containing a plot of the inVector multiplied by multiplicator % - outVector - vector of double being a result of multiplicatio of inVector by multiplicator
% %
multipliedVec = inVector .* multiplicator; outVector = inVector .* multiplicator;
plot(multipliedVec);
print('-dpng', 'multipliedVec.png');
end end