index to matrix columns
1 回表示 (過去 30 日間)
古いコメントを表示
i want put indices to matrix columns. eg
i got 1 2 3 3 4 5 6 7 8
i want to assign indices to the column vectors [1:3:6] etc
and is there a way to put random indices? the way crossvalind command does? the problem with crossvalind is that it only accepts arrays not column vectors
any ideas?
0 件のコメント
回答 (1 件)
the cyclist
2013 年 6 月 20 日
I think you can do what you want using the randsample() command.
doc randsample
for details.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!