How to write a function with a for loop
古いコメントを表示
if t(i)=L1*(i-1)+ L[(i-1)/e]*t_k
i get
t1=0;
t2=L1;
t3=2*L1+t_k;
t4=3*L1+t_k;
where e=2 and i want to have a floor function for L[ (i-1)/e].How to create a function for the following with input e,imax,L1 and t_k like function delay(e,imax,L1,t_k) with a for loop
2 件のコメント
TRISHITA BANERJEE
2018 年 7 月 4 日
編集済み: Walter Roberson
2018 年 7 月 4 日
Walter Roberson
2018 年 7 月 4 日
You mentioned floor() earlier, but here you use round() instead?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および 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!