matrix dimensions must agree error

1 vue (au cours des 30 derniers jours)
Alex
Alex le 30 Oct 2019
Commenté : Alex le 30 Oct 2019
I'm having matrix dimensions must agree error
Screen Shot 2019-10-29 at 10.47.36 PM.png
  1 commentaire
James Tursa
James Tursa le 30 Oct 2019
Modifié(e) : James Tursa le 30 Oct 2019
Please don't post pictures of code. We can't copy and paste pictures into MATLAB and run it. Instead, copy your code as text, highlight it, and then press the CODE button to format it.

Connectez-vous pour commenter.

Réponse acceptée

James Tursa
James Tursa le 30 Oct 2019
Modifié(e) : James Tursa le 30 Oct 2019
Well, tau is only two elements and w is a lot more than that, so you can't multiply them element-wise like you are attempting to do. Maybe you wanted to use tau(t) inside your for-loop instead of tau? And for plotting, maybe just x instead of x(w)?
  1 commentaire
Alex
Alex le 30 Oct 2019
that's helpful thank you.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by