How can I operate a matrix by a vector?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jerson García
am 25 Sep. 2021
Beantwortet: KSSV
am 26 Sep. 2021
Hi, I need nelp.
I need to perform the following function f (x) = || Ax - b || ^ 2
A = [2 3, 1-2, 4 1];
b = [2,4, -5];
syms x1 x2
x = [x1 x2];
(sqrt ((A * x-b) ^ 2)) ^ 2
0 Kommentare
Akzeptierte Antwort
KSSV
am 26 Sep. 2021
A = [2 3 ; 1 -2 ; 4 1];
b = [2,4, -5]';
syms x1 x2
x = [x1 ; x2];
f = (sqrt ((A * x-b) .^ 2)) .^ 2
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus 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!