vector multiplication with its transpose

3 次查看(过去 30 天)
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
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
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by