MatlabSampleApp2/sampleApp.m

23 lines
726 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-10-18 10:58:06 +02:00
function outVector = sampleApp(inVector, multiplicator)
2022-03-17 11:20:50 +01:00
2022-10-18 10:58:06 +02:00
%% sampleApp function that multiplies a vector of number values by a multiplicator and plots the result
2022-03-17 12:00:41 +01:00
%
% Inputs:
% - inVector - vector of double number values
% - multiplicator - scalar number by which the inVector will be multiplied
%
% Outputs:
2022-10-18 10:58:06 +02:00
% - outVector - vector of double being a result of multiplicatio of inVector by multiplicator
2022-03-17 12:00:41 +01:00
%
2022-10-18 10:58:06 +02:00
outVector = inVector .* multiplicator;
2022-03-17 11:20:50 +01:00
end