hey everyone.
I was given a 18*18 Matrix "A", a 18*1 vector "q" and was asked to solve Aq=v and find the vector "v".
after finding the vector "v", I was asked to find a new vector "q*" that minimizes the 2 norm of ||v-Aq*||, and for one thing I dont really understand what am I looking for, and also how to find it.
thanks in advance.

 Respuesta aceptada

Stephan
Stephan el 27 de Mzo. de 2019
Editada: Stephan el 27 de Mzo. de 2019
Hi,
use:
q1 = A\v
Since you calculated v by using A*q the result will be:
q1 = q
norm(v-A*q) = 0
norm(v-A*q1) = norm(v-A*q) = 0
Best regards
Stephan

3 comentarios

Yonatan Axelrad
Yonatan Axelrad el 27 de Mzo. de 2019
cheers for the answer and th quick response
Stephan
Stephan el 27 de Mzo. de 2019
Did you notice that you can accept and/or vote for useful answers?
Yonatan Axelrad
Yonatan Axelrad el 27 de Mzo. de 2019
I did now haha

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 27 de Mzo. de 2019

Comentada:

el 27 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by