loop of powers
古いコメントを表示
pval = [1e-24 1e-23 1e-22 1e-21 1e-20]
How can I initialize such an array by inputting only -24 and -20? Many thanks for your time.
回答 (2 件)
Sean de Wolski
2012 年 6 月 15 日
p = 1*10.^[-24:1:-20]
Walter Roberson
2012 年 6 月 15 日
logspace(-24, -20, 5)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!