Question: I ' m trying to write a code in MATLAB that takes the unit vector equations from the initial position equation ( r 1 =

I'm trying to write a code in MATLAB that takes the unit vector equations from the initial position equation (r1=3x^+4y^ where x^ is x hat and y^ is y hat) and velocity (-0.5x^-0.5y^ where x^ and y^ are that variable with a hat)equations and finds the absolute position at a range of times. I don't know what is wrong with what I've been trying. I currently have the code:
c1=zeros(11,2);
r1=[3;4];
v1=[-.5;-.5];
for i=1; t=0:1:10
p1=r1+((t).*v1);
c1(i,1)=t;
c1(i,2)=p1;
end
c1

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!