Regularized SVD to find the least square solution

5 visualizaciones (últimos 30 días)
PNainwal
PNainwal el 2 de Sept. de 2023
Comentada: Rondall el 17 de Mzo. de 2024
Hi all,
I am required to find a least square solution of system of linear equation (Ax = b) where the system is overdetermined. I notice that when i write A= vpa(A, 128) i get the full column rank whereas without vpa it is rank deficient matrix. I have used couple of mehods to solve this e.g
1 - x = A\b
2 - x = (A'*A\A'*b) ( produces the best ans so far but not perfect )
3 - x = pinv(double(A))*double(b)
4 - x = lsqminnorm(double(A'*A), double(A'*b))
but none of them seems to produce the solution i am wishing for. Kindly tell me other efficient ways of producing least square solution or let me know if i am going wrong.
  2 comentarios
Bruno Luong
Bruno Luong el 2 de Sept. de 2023
The code you cited none of them is regularized.
PNainwal
PNainwal el 2 de Sept. de 2023
So how can i can achieve that ? Is there a matlab function which does so ?Thanks

Iniciar sesión para comentar.

Respuesta aceptada

Bruno Luong
Bruno Luong el 2 de Sept. de 2023
Movida: Bruno Luong el 2 de Sept. de 2023
There is no MATLAB function that I'm aware of, you can build your own or look in file exchange, there are few posted there.
The most basic Tikhonov regularization can be achieve with
lambda = something;
[m,n] = size(A)
x = [A; sqrt(lambda)*eye(n)] \ [b; zeros(n,1)]
  1 comentario
PNainwal
PNainwal el 2 de Sept. de 2023
Movida: Dyuman Joshi el 2 de Sept. de 2023
Okay ! Thank you so much for reply.

Iniciar sesión para comentar.

Más respuestas (1)

Rondall
Rondall el 16 de Mzo. de 2024
The new routine, ARLS, is for just such problems.
  2 comentarios
Bruno Luong
Bruno Luong el 17 de Mzo. de 2024
Editada: Bruno Luong el 17 de Mzo. de 2024
R2023B
try
ARLS()
catch
arls()
end
Unrecognized function or variable 'arls'.
Rondall
Rondall el 17 de Mzo. de 2024
Sorry.... I foolishly misspoke.... ARLS is available from File Exchange.... just seach F.E. for it.
It's NOT a built in function. My apologies.

Iniciar sesión para comentar.

Categorías

Más información sobre Spline Postprocessing en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by