From d1fa502bf8e113d72c62b4c7372a35fd11207639 Mon Sep 17 00:00:00 2001 From: "TCS portal test user (insilicolab@gmail.com)" Date: Thu, 17 Mar 2022 12:00:41 +0100 Subject: [PATCH] Filled sampleApp.m contents --- sampleApp1.m | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/sampleApp1.m b/sampleApp1.m index 87a4701..4882d87 100644 --- a/sampleApp1.m +++ b/sampleApp1.m @@ -1,8 +1,24 @@ -%% This function was automatically generated. When modifying its signature, take care to apply -%% modifications also to the descriptor files in the repository. +%% ----------------- +%% 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 +%% function sampleApp1(inVector, multiplicator) -%% SAMPLEAPP1 -%% TODO: Put your application code here +%% 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'); end