Trying add chunk of data to a array

3 次查看(过去 30 天)
ijijij

回答(1 个)

Steve Eddins
Steve Eddins 2020-11-4
As I understand the code, the fact that ls is empty after the loop implies that either:
  • The while loop body never executes
  • The if body never executes; or
  • z is empty in the assignment ls = [ls z];
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 个评论
AJ Woodson
AJ Woodson 2020-11-4
So I just ran this with win 2 Nfft =3 now runs but it taking forever same x

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by