Tracks are the same length but wont concatenate
조회 수: 1 (최근 30일)
이전 댓글 표시
Im still learning matlab and trying to make a small music editor, i want to combine two tracks but of course they need to be the same length but after converting them to the same size, it still doesn't work. When I Print the size of the tracks i get theses result, any help would be appreciated.
ans =
1 566272
ans =
566272 1
댓글 수: 0
채택된 답변
Star Strider
2016년 12월 8일
편집: Star Strider
2016년 12월 8일
Transpose the row vector to a (566272 x 1) column vector. Then you should be able to concatenate them.
Note that the first column will be the left channel, and the second column will be the right channel.
EDIT — To clarify, the easiest way to do this is:
Both_Tracks = [Track_Left(:), Track_Right(:)];
댓글 수: 0
추가 답변 (1개)
Chaya N
2016년 12월 8일
From your data given above, one of them is a row and the other is a column. They should both read 1-by-566272 OR 566272-by-1. Transpose one of them and then try concatenating.
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!