finding matrix base on linear equation
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hello,
given a linear quation, y=ax+b y=-0.15x-21.3, how can find a matrix for y=Ax?
thanks
0 Commenti
Risposte (1)
Star Strider
il 18 Gen 2022
I’m not certain what the desired result is here.
Try this —
x = linspace(-10, 10, 5);
y = -0.15*x-21.3;
X = [x(:), ones(size(x(:)))] % Design Matrix
Coefficients = X \ y(:) % Proof
.
0 Commenti
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!