Using a for loop to vary the angle (θ = 10 deg – 90deg )

How do I make a for loop in Matlab for a range of theta for my velocity term of 10m/s?

 Accepted Answer

Try this
numAngles = 100; % However many angles you want
theta = linspace(0, 90, numAngles);
or
theta = 10 : 5 : 90; % Adjust middle number to adjust the step size.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Products

Release

R2022a

Tags

Asked:

on 27 Oct 2022

Commented:

on 27 Oct 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!