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?

Respuestas (1)

James Tursa
James Tursa el 14 de Abr. de 2020
Editada: James Tursa el 14 de Abr. de 2020
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 comentarios

Muhammad Atif
Muhammad Atif el 14 de Abr. de 2020
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 el 14 de Abr. de 2020
y(t)'*y(t)
James Tursa
James Tursa el 14 de Abr. de 2020
Editada: James Tursa el 14 de Abr. de 2020
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 el 15 de Abr. de 2020
yes it is numeric, but it is a row vector

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Abr. de 2020

Comentada:

el 15 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by