MATLAB Answers

Tracks are the same length but wont concatenate

1 ビュー (過去 30 日間)
Josh Reilly
Josh Reilly 2016 年 12 月 8 日
編集済み: Star Strider 2016 年 12 月 8 日
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 件のコメント

サインイン to comment.

採用された回答

Star Strider
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 件のコメント

サインイン to comment.

その他の回答 (1 件)

Chaya N
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 件のコメント

Walter Roberson
Walter Roberson 2016 年 12 月 8 日
MATLAB uses the convention that columns correspond to channels.
Josh Reilly
Josh Reilly 2016 年 12 月 8 日
Thank you for your help

サインイン to comment.

サインイン してこの質問に回答します。

タグ

製品


Translated by