Filter löschen
Filter löschen

how to solve this equation in matlab??

1 Ansicht (letzte 30 Tage)
Adam
Adam am 13 Okt. 2022
Bearbeitet: Torsten am 13 Okt. 2022
3x-2y+4=0
-x+2y -3=0

Antworten (1)

Torsten
Torsten am 13 Okt. 2022
Bearbeitet: Torsten am 13 Okt. 2022
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

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by