フィルターのクリア

how to solve this equation in matlab??

1 回表示 (過去 30 日間)
Adam
Adam 2022 年 10 月 13 日
編集済み: Torsten 2022 年 10 月 13 日
3x-2y+4=0
-x+2y -3=0

回答 (1 件)

Torsten
Torsten 2022 年 10 月 13 日
編集済み: Torsten 2022 年 10 月 13 日
A = [3 0 -2;-1 2 0];
b = [-4;3];
sol_inhomogen = A\b;
sol_homogen = null(A);
sol = @(lambda) sol_inhomogen + lambda*sol_homogen
sol = function_handle with value:
@(lambda)sol_inhomogen+lambda*sol_homogen
%E.g.
sol(1)
ans = 3×1
-0.7988 1.1006 0.8018
A*sol(1)-b
ans = 2×1
1.0e-14 * -0.1776 0

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by