From 0d1931b972faedba6e5a3de04fa017651283806f Mon Sep 17 00:00:00 2001 From: pu3mybsfx <3034189236@qq.com> Date: Wed, 24 May 2023 19:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- t4.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 t4.m diff --git a/t4.m b/t4.m new file mode 100644 index 0000000..5e51437 --- /dev/null +++ b/t4.m @@ -0,0 +1,13 @@ +clear,clc +A=[1 1 0 3; + 2 1 -1 1; + 3 -1 -1 2; + -1 2 3 -1] + +[L1,U1]=lu_decompose(A) + +B=[8;7;14;-7] + +V=inv(L1)*B + +X=inv(U1)*V