matrix dimensions must agree. please help!!
2 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205166/image.png)
thank you very much!!
2 件のコメント
採用された回答
Asad Mirza
2019 年 2 月 21 日
編集済み: Asad Mirza
2019 年 2 月 21 日
Looks like z is a 3x1 vector while h evaluates to a 2x1 vector since Dv is 3x2 and v is 3x1 which forces the resulting division to be 2x1.
You cannot add a vector of 3 indices to one with 2.
It looks like you do not use k in your function anywhere, an easy fix would be to make z = [x0;y0]; and just remove k0.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!