vector multiplication with its transpose
Afficher commentaires plus anciens
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?
Réponses (1)
James Tursa
le 14 Avr 2020
Modifié(e) : James Tursa
le 14 Avr 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 commentaires
Muhammad Atif
le 14 Avr 2020
Muhammad Atif
le 14 Avr 2020
James Tursa
le 14 Avr 2020
Modifié(e) : James Tursa
le 14 Avr 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
le 15 Avr 2020
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!