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!