MatlabSampleApp2/sampleApp.m

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