need help creating two nested for loops to run the function
2 次查看(过去 30 天)
显示 更早的评论
function[v_a, x_direction, y_direction, v_b, t_flight]=func(friction, initalelevation)
friction= 0.1 : 0.05 : 0.65
initial elevation= 100 : 15 : 200
Can you please provide me with an example to create "two nested for loops to run the function for all combinations of inputs given above" , I already have outputs equations assigned
Thanks!
2 个评论
Stephen23
2019-3-4
编辑:Stephen23
2019-3-4
@william Smith: what have you tried so far? Did you search the internet for "MATLAB nested loops"? What is the exact problem that you are having that you are unable to solve?
Note that very basic MATLAB concepts, such as how to call functions and write loops, are explained in the introductory tutorials:
回答(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!