From 1bd9aa037e667e5925fe11b592c4547c8ed81ab5 Mon Sep 17 00:00:00 2001 From: Patrice Matz Date: Thu, 4 Jan 2018 22:54:52 +0100 Subject: [PATCH] -added m-file for cramer (a22) --- Mex/a22.m | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Mex/a22.m diff --git a/Mex/a22.m b/Mex/a22.m new file mode 100644 index 0000000..2ffb2d8 --- /dev/null +++ b/Mex/a22.m @@ -0,0 +1,9 @@ +%function accepts 1 double and 1 double matrix (#of_variables, [row1;row2]) +%each row1 contains #of_variables+1 elements +%returns solution vector +%bsp.: +% 6x+12y=30 +% 3x+ 3y= 9 +% [a1,a2]=a21(2,[6,12,30;3,3,9]) +% a1 = 1 +% a2 = 2 \ No newline at end of file