Tags

,

% Simplest Linear solver
% A*X = B
% y = mx+c <– linear formula
% y = 2x+4 <– Answer

A = [0 1;
1 1]
B = [4;
6]
X = linsolve(A,B)

%check result
(A*X==B)

%Reference
%http://www.mathworks.com/access/helpdesk/help/techdoc/ref/linsolve.html

Advertisements