Dividing an interval into smaller intervals and name them.
4 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have an interval and I want to divide it into smaller intervals (lets say n) with the same length and after that 'name' each one of them.
The purpose is to find in which of these intervals belongs a number that I get as a result from another procedure. Is it possible ? (I dont use symbolic tools)
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2016 年 4 月 26 日
編集済み: Azzi Abdelmalek
2016 年 4 月 26 日
a=1:100
b=mat2cell(a,1,10*ones(1,10))
you have a cell array containing ten intervals
b{1}
b{2}
...
and so on
Giving a different name to each interval is a bad idea
参考
カテゴリ
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!