matrix dimensions must agree error

1 回表示 (過去 30 日間)
Alex
Alex 2019 年 10 月 30 日
コメント済み: Alex 2019 年 10 月 30 日
I'm having matrix dimensions must agree error
Screen Shot 2019-10-29 at 10.47.36 PM.png
  1 件のコメント
James Tursa
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
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)?
  1 件のコメント
Alex
Alex 2019 年 10 月 30 日
that's helpful thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by