MatlabSampleApp2/sampleApp1.m

25 lines
793 B
Mathematica
Raw Normal View History

2022-03-17 12:00:41 +01:00
%% -----------------
%% Copyright © 2022 ACK Cyfronet AGH, Poland.
%% -----------------
%%
%% Sample function created for demonstration of creating custom applications functionality
%% See also https://docs.cyfronet.pl/display/ISDOC/Creating+Custom+Applications
%%
2022-03-17 11:20:50 +01:00
function sampleApp1(inVector, multiplicator)
2022-03-17 12:00:41 +01:00
%% sampleApp1 function that multiplies a vector of number values by a multiplicator and plots the result
%
% Inputs:
% - inVector - vector of double number values
% - multiplicator - scalar number by which the inVector will be multiplied
%
% Outputs:
% - PNG image file 'multipliedVec.png' containing a plot of the inVector multiplied by multiplicator
%
multipliedVec = inVector .* multiplicator;
plot(multipliedVec);
print('-dpng', 'multipliedVec.png');
2022-03-17 11:20:50 +01:00
end