- The while loop body never executes
- The if body never executes; or
- z is empty in the assignment ls = [ls z];
Trying add chunk of data to a array
1 回表示 (過去 30 日間)
古いコメントを表示
回答 (1 件)
Steve Eddins
2020 年 11 月 4 日
As I understand the code, the fact that ls is empty after the loop implies that either:
You haven't shown us how the values of x or i or Nfft get set, so we can only make educated guesses about the specific cause.
I suggest that you single-step through the code using the debugger. At each line, check the values of the key variables and make sure that each one contains what you think it should.
5 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!