vector multiplication with its transpose

Hi experts,
I have question about an inequality how to implement in matlab??
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?

답변 (1개)

James Tursa
James Tursa 2020년 4월 14일
편집: James Tursa 2020년 4월 14일

0 개 추천

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

Muhammad Atif
Muhammad Atif 2020년 4월 14일
Thanks sir, but my question is about can I use a norm function here? i.e. y(t)*y(t)=Norm (y)
Muhammad Atif
Muhammad Atif 2020년 4월 14일
y(t)'*y(t)
James Tursa
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?
Muhammad Atif
Muhammad Atif 2020년 4월 15일
yes it is numeric, but it is a row vector

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2020년 4월 14일

댓글:

2020년 4월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by