Trying add chunk of data to a array

1 vue (au cours des 30 derniers jours)
AJ Woodson
AJ Woodson le 4 Nov 2020
Modifié(e) : AJ Woodson le 4 Nov 2020
ijijij

Réponses (1)

Steve Eddins
Steve Eddins le 4 Nov 2020
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 commentaires
AJ Woodson
AJ Woodson le 4 Nov 2020
So I just ran this with win 2 Nfft =3 now runs but it taking forever same x
AJ Woodson
AJ Woodson le 4 Nov 2020
Nvm sorry figured it out

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by