matlab平行因子_MATLAB教程-台大郭彦甫-第十二节,含练习答案

12-线性方程式与线性系统

一、Linear equation(线性方程式)

(一)Linear equation

1、Suppose you are given linear equations:

1194b6ddd4abfa0e62aba251e530c45c.png

(二)Why Matrix Form(为什么转换为向量形式)

1、An electrical network:

11a1ed621b653c0be6fce67dada6c27f.png

2、Given the voltages

equation?tex=V_%7B1%7D and
equation?tex=V_%7B2%7D and the resistances
equation?tex=R_%7B1%7D ...
equation?tex=R_%7B5%7D (已知电压与电阻)

3、Solve the current

equation?tex=i_%7B1%7D ...
equation?tex=i_%7B5%7D (求电流)

注意:Kirchhoff's law(基尔霍夫定律),包括电压定律与电流定律

9e0cf6967c847d5763e16171f6c3627f.png

可以替换成

equation?tex=R%2Ai%3DV ,即替换为
equation?tex=A%2Ax%3Db ,其中
equation?tex=x ,即
equation?tex=i 未知

(三)Formulation for the Electrical Networks(电路公式)

dd300b48d9459dc00f8cb209e5b626f3.png

(四)Solving Linear Equations(解线性方程组)

1、Successive elimination(through factorization)(逐次消除(通过因子分解))

2、Cramer's method(克莱姆法则)

(五)Gaussian Elimination(高斯消去法)

1、Suppose given:

a2882f88af755eb048d3f82680446339.png

(六)Gaussian Elimination-rref()

2913e9d4ba283a9e0f6afdfb86e0e4c5.png

示例代码:

A = [1 2 1;2 6 1;1 1 4];
b = [2;7;3];
R = rref([A b])

输出结果:

167b2f3f32989ade79518998a814a81a.png

(七)LU Factorization(LU因子分解)

1、Suppose we want to solve :

equation?tex=Ax%3Db ,where
equation?tex=A%5Cin+%5CRe%5E%7Bm%5Ctimes+m%7D

2、Decompose A into 2 triangular matrices:

equation?tex=A%3DL%5E%7B-1%7DU (三角矩阵)

3、The problem become:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值