Sözde Ters Matris ve Matlab Uygulaması/Pseudo Inverse Matrix and its Matlab Application

Описание к видео Sözde Ters Matris ve Matlab Uygulaması/Pseudo Inverse Matrix and its Matlab Application

Matlab Kodları

figure(1)
X=[1;2;3]
Y=[2;3;4]
plot(X,Y,'o',"LineWidth",3)
grid on
ylim([0,5])
xlim([0,4])
X=[X';1 1 1]'
T=inv(X'*X)*X'
T*X
katsayilar=T*[2;3;4]
a=katsayilar(1);
b=katsayilar(2);
x=0.1:0.1:4
y=a*x+b
hold on
plot(x,y,"LineWidth",3)

%
figure(2)
X=10*rand(10,1)
Y=2*X+1+10*rand(10,1)
plot(X,Y,'o',"LineWidth",3)
grid on
X=[X';1 1 1 1 1 1 1 1 1 1]'
T=inv(X'*X)*X'
katsayilar=T*Y
a=katsayilar(1);
b=katsayilar(2);
x=0.1:0.1:10
y=a*x+b
hold on
plot(x,y,"LineWidth",3)

Комментарии

Информация по комментариям в разработке