Question: How can I change my MATLAB code so that instead of going from t = 0 to t = 1 0 in 1 second intervals

How can I change my MATLAB code so that instead of going from t=0 to t=10 in 1 second intervals (like whats in my code) to going from t=0 to t=10 in 0.1 second intervals? My code: c1= zeros(11,2);
r1=[3;4];
v1=[-.5;-.5];
for i =1:11
t = i -1;
p1= r1+ t * v1;
c1(i,1:2)= p1';
end

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!