Filter löschen
Filter löschen

vector multiplication with its transpose

3 Ansichten (letzte 30 Tage)
Muhammad Atif
Muhammad Atif am 14 Apr. 2020
Kommentiert: Muhammad Atif am 15 Apr. 2020
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?

Antworten (1)

James Tursa
James Tursa am 14 Apr. 2020
Bearbeitet: James Tursa am 14 Apr. 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 Kommentare
James Tursa
James Tursa am 14 Apr. 2020
Bearbeitet: James Tursa am 14 Apr. 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 am 15 Apr. 2020
yes it is numeric, but it is a row vector

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by