matrix dimensions must agree error
1 次查看(过去 30 天)
显示 更早的评论
I'm having matrix dimensions must agree error
1 个评论
James Tursa
2019-10-30
编辑:James Tursa
2019-10-30
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.
采纳的回答
James Tursa
2019-10-30
编辑:James Tursa
2019-10-30
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)?
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!