Divide segment into logarithmically spaced intervals
1 回表示 (過去 30 日間)
古いコメントを表示
I have a set of data points between the interval 0 - 1.
I want to divide this interval into logarithmically spaced sub intervals. In other words, I want to divide it into many closely separated divisions near zero, and I want them to space out as they go towards 1.
How do I do this?
0 件のコメント
回答 (1 件)
Walter Roberson
2011 年 4 月 11 日
logspace(log10(Lowbound),log10(Highbound),NumberOfIntervals+1)
Note, though, that it is not possible to use logarithmically spaced intervals if your lower bound is 0, and chances are that you'll be fairly disappointed if your lower bound is even vaguely close to 0 (e.g., eps)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!