initialVelocity = (3.0 : 0.05 : 3.5);
hold on
for i = 1 : length(initialVelocity)
[range, rangeAngle] = ProjectileRange2(d,initialVelocity(i));
scatter(initialVelocity(i), range(i), 'r*');
end
I am trying to scatter plot initalVelocity vs range and error says "index exceeds the number of array elements(1)" I cant figure out why
Best Answer