Keep getting matrix dimensions must agree for code

For my engineering 101 class, we have to code a song into MATLAB. For some reason, I keep getting the same error code. Any help is appreciated.
jakenote is the code my professor gave us to work with and music2 is what I've done so far.

1 件のコメント

Bob Thompson
Bob Thompson 2018 年 10 月 8 日
Wow, I see why you want help, now that I know where the error is. What is this line supposed to do? Is there any way of breaking it into smaller pieces?

回答 (1 件)

madhan ravi
madhan ravi 2018 年 10 月 8 日
編集済み: madhan ravi 2018 年 10 月 8 日

0 投票

>> size(A4e+F4SHARPe)
ans =
1 11025
>> size(F4SHARPq+D4q)
ans =
1 22050
>> size(Re)
ans =
1 11025
>>
As you can see the sizes mismatch in order to remove the error the sizes should be the same

この質問は閉じられています。

製品

質問済み:

2018 年 10 月 8 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by