Question: clc clear close all x = 1 : 1 0 ; y = 2 * x + 5 + randn ( size ( x )

clc
clear
close all
x =1:10;
y =2*x +5+ randn(size(x));
A =[x', ones(size(x'))];
coefficients = A \ y';
y_fit = A * coefficients;
plot(x, y,'o', x, y_fit, '-')
xlabel('Zaman')
ylabel('Baraj Doluluk Oran')
legend('Gerek Veri', 'Regresyon Dorusu')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!