Using linear regression and MATLAB (no external files) write two
separate functions.
EDIT:
code to copy:
3. function findLine:
%return two vectors
function [xvec yvec]=findLine(a0,a1)
for x=0:0.1:10
xvec=[xvec x];
y=a1*x+a0;
yvec=[yvec y];
end
end
4. function outputRegressData
function outputRegressData(xline,yline,xdata,ydata)
hold on
%plot output from findLine() in continuous
plot(xline,yline);
%plot output from getData() without continuous
plot(xdata,ydata,'+');
end
Using linear regression and MATLAB (no external files) write two separate functions. EDIT: Programming In this...
EFC 3213 COMPUTING II (NUMERICAL METHOD) Assignment 2. Group Assignment (3-4 person per group) Students must use MATLAB software in order to solve the problems given and write a report containing all the necessary evidence proving that the work has been done. Any theory, assumption or any related discussion related in solving the problem must be inserted into the report. The MATLAB programming code should be attached as appendix to the report and shall not be put as the report...