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

3 vues (au cours des 30 derniers jours)
Daniel
Daniel le 27 Oct 2022
Commenté : Daniel le 27 Oct 2022
How do I make a for loop in Matlab for a range of theta for my velocity term of 10m/s?

Réponse acceptée

Image Analyst
Image Analyst le 27 Oct 2022
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.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by