vector multiplication with its transpose
3 ビュー (過去 30 日間)
古いコメントを表示
Hi experts,
I have question about an inequality how to implement in matlab??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/284478/image.jpeg)
the simple is that (y(t+1)-y(t))'W(y(t+1)-y(t))>y(t)'Wy(t)? Can I use a norm function for this?
0 件のコメント
回答 (1 件)
James Tursa
2020 年 4 月 14 日
編集済み: James Tursa
2020 年 4 月 14 日
Variables and expressions in MATLAB need an operator between them ... there is no implied multiply. So this
(y(t+1)-y(t))'W(y(t+1)-y(t))>y(t)'Wy(t)
should be this instead
(y(t+1)-y(t)).' * W * (y(t+1)-y(t)) > y(t).' * W * y(t)
4 件のコメント
James Tursa
2020 年 4 月 14 日
編集済み: James Tursa
2020 年 4 月 14 日
For a numeric column vector, norm(y(t)) would give the same result as sqrt(y(t)' * y(t)) if that is what you are asking.
How is this being used? Are these numeric or symbolic?
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!