If values are given then how we used in loop one by one .

1 回表示 (過去 30 日間)
Shoaib Muhammad
Shoaib Muhammad 2021 年 9 月 17 日
回答済み: Cris LaPierre 2021 年 9 月 17 日
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

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 9 月 17 日
Ch 13 of MATLAB Onramp explains how to create and use for loops in MATLAB.
You can also find some examples here.
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.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by