フィルターのクリア

error using reshape , number of elements must not change

4 ビュー (過去 30 日間)
amani
amani 2024 年 9 月 5 日 14:45
回答済み: Star Strider 2024 年 9 月 5 日 15:37
i have this problem ! can some one help me plz ....
  1 件のコメント
Steven Lord
Steven Lord 2024 年 9 月 5 日 15:13
Set an error breakpoint and run your code. When MATLAB stops on line 36 of your xOCDMModem_TX.m file, show us the following information:
  • The size and class of the t_ModemSymbol variable
  • The values of the num_Symbol and num_Block variables
I'm guessing that t_ModemSymbol is the same size and class as the t_ModSymbol variable, namely a 163840-by-1 complex double array. If it is, then num_Symbol times num_Block must be exactly 163840 for that reshape command to succeed. If num_Symbol is 2^6 (a guess based on how t_ModSymbol is defined on line 162 of your main_amani.m file) numBlock should be 5*2^9 or 2560.

サインインしてコメントする。

回答 (1 件)

Star Strider
Star Strider 2024 年 9 月 5 日 15:37
An alternative could be to use the buffer function.
For example —
t_OCDMSymbol = buffer(t_ModemSymbol, num_Symbol);
It will fill the unused element positions with zeros.

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by