Using a for loop to vary the angle (θ = 10 deg – 90deg )
3 次查看(过去 30 天)
显示 更早的评论
How do I make a for loop in Matlab for a range of theta for my velocity term of 10m/s?
0 个评论
采纳的回答
Image Analyst
2022-10-27
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!