필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Create vectors by taking different number of columns from matrix

조회 수: 1 (최근 30일)
Christos Antonakopoulos
Christos Antonakopoulos 2015년 11월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello to everyone,
so i have a matrix (dimension1*298) and a vector with values count=(51,25,78,48,48,48)'. I want to create 6 new vectors from this matrix, each of which will has
length1= dimension1*value(count(1))=dimension1*51, (take the first 51 columns from the matrix for the first vector)
length2=dimension1*value(count(2))=dimension1*25 (take the next 25 columns from the matrix for the first vector)
and so on.
So practically i create from my big matrix new vectors which will comprise from its columns. But the problems is that those vectors will have different lengths.
Any ideas?

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by