Question: in MATLAB: Write a user-defined function [x0,v0,a] = ls(t,x) that estimates the initial position x0, the initial velocity v0 and the acceleration a of the
in MATLAB:
Write a user-defined function [x0,v0,a] = ls(t,x) that estimates the initial position x0, the initial velocity v0 and the acceleration a of the object using linear least squares given measurements of position x as a function of time t. Apply your function to measurements x and t in the data file. Write, as a comment, the estimate you found, for x0, v0, and a. I am at a loss as to how to do this. Let x and t in the data file be columns of float values.
Step by Step Solution
There are 3 Steps involved in it
To solve this problem you need to write a MATLAB function that estimates the initial position initial velocity and acceleration of an object based on ... View full answer
Get step-by-step solutions from verified subject matter experts
