Increment a for loop by 1e-1

8 ビュー (過去 30 日間)
thompson1o1
thompson1o1 2019 年 10 月 3 日
回答済み: Walter Roberson 2019 年 10 月 3 日
im looking how to do a for loop that increments from .0001 then have .001 followed by .01 finally with .1 but i have having trouble formatting it.

採用された回答

Walter Roberson
Walter Roberson 2019 年 10 月 3 日
Example:
for p = [0:.0001:1, 0:0.001:1, 0:0.01:1, 0:0.1:1]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by