Question

Using linear regression and MATLAB (no external files) write two separate functions.
Programming In this assignment you are given two sets of data First a test set: 25 3 8 And a second set of experimental data for a parachutist: Time (s) Velocity (m/s) 10.00 16.30 23.00 27.50 31.00 35.60 39.00 41.50 42.90 45.00 46 45.50 46.00 49.00 50.00 2 4 10 12 13 14 15

media%2Fdb4%2Fdb4d46f3-fef0-4066-a0bc-81

EDIT:

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

Add a comment
Know the answer?
Add Answer to:
Using linear regression and MATLAB (no external files) write two separate functions. EDIT: Programming In this...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • EFC 3213 COMPUTING II (NUMERICAL METHOD) Assignment 2. Group Assignment (3-4 person per group) Students must...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT