If values are given then how we used in loop one by one .
2 次查看(过去 30 天)
显示 更早的评论
if lamda_1, lamda_2, lamda_3 ...... lamda_6 are the given then how we use these in for loop like if when first iteration to take lamda_1 and when 2nd iteration to take lamda_2 and 3rd to lamda_3 and so on .. please help me
0 个评论
回答(1 个)
Cris LaPierre
2021-9-17
Basically, put your numbers in a vector, and then use your loop counter to index (Ch 5 of onramp) the value to use in that loop from your vector.
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!