matrix dimensions must agree error
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm having matrix dimensions must agree error
1 Kommentar
James Tursa
am 30 Okt. 2019
Bearbeitet: James Tursa
am 30 Okt. 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.
Akzeptierte Antwort
James Tursa
am 30 Okt. 2019
Bearbeitet: James Tursa
am 30 Okt. 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)?
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!