필터 지우기
필터 지우기

index to matrix columns

조회 수: 1 (최근 30일)
laplace laplace
laplace laplace 2013년 6월 20일
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?

답변 (1개)

the cyclist
the cyclist 2013년 6월 20일
I think you can do what you want using the randsample() command.
doc randsample
for details.

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by