diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..aadd85fadd99cf334b7bde0dcb8c48e8e68b3964 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# `git` training: repo for pratice and homework + diff --git a/firstCommit/addTwoNumbers.m b/firstCommit/addTwoNumbers.m index 7cf857e38cadbe47b42239a8ec694089a834b68b..a2bda847736a8944ab35d869dd7609df18ba5d17 100644 --- a/firstCommit/addTwoNumbers.m +++ b/firstCommit/addTwoNumbers.m @@ -1,5 +1,5 @@ function c = addTwoNumbers(a, b) % addTwoNumbers(a, b) returns the sum of a and b -% c = a + b +% c = a + b; end diff --git a/secondCommit/multiplyTwoNumbers.m b/secondCommit/multiplyTwoNumbers.m index 81da38f164da4fef368ca129fbdb9f1e8dcc08be..2431ab5ec29578b9efcc05cdeaea6c44154c7f8a 100644 --- a/secondCommit/multiplyTwoNumbers.m +++ b/secondCommit/multiplyTwoNumbers.m @@ -1,5 +1,5 @@ function c = multiplyTwoNumbers(a, b) % multiplyTwoNumbers(a, b) returns the product of a and b -% c = a * b +% c = a * b; end diff --git a/test.m b/test.m new file mode 100644 index 0000000000000000000000000000000000000000..0291f9f3c1081431704428798bd05991879f710d --- /dev/null +++ b/test.m @@ -0,0 +1,10 @@ +% Test file + +addpath(genpath(pwd)) % add this foldeand r all subfolders to the path + +c = addTwoNumbers_syarra(1, 1); % 1 + 1 + +d = multiplyTwoNumbers_syarra(c, c); % 2 * 2 + +% test my sqrt function +assert(sqrt_syarra(d) == sqrt(d))