|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
calling all MatLab gurus...
I have an M by N matrix A and an M by 1 column vector b. I want to find the N by 1 column vector x which minimizes sum(abs(A*x-b)). What is the recommended way to do this in MatLab? |
|
#2
|
|||||
|
|||||
|
Re: calling all MatLab gurus...
I'd use linprog and solve the same linear program as in the Python thread.
|
|
#3
|
||||
|
||||
|
Re: calling all MatLab gurus...
Attached is an XLS spreadsheet with a 256-by-64 A matrix and a 256-by-1 b column vector. Using your favorite tool or language, find the 64-by-1 column vector x which minimizes sum(abs(A*x-b)). Show your work. Any takers? Last edited by Ether : 16-04-2014 at 00:09. |
|
#4
|
||||
|
||||
|
Re: calling all MatLab gurus...
Quote:
Last edited by Ether : 17-04-2014 at 16:02. |
|
#5
|
||||
|
||||
|
Re: calling all MatLab gurus...
Why?
|
|
#6
|
||||
|
||||
|
Re: calling all MatLab gurus...
Why what?
|
|
#7
|
||||
|
||||
|
Re: calling all MatLab gurus...
Quote:
See discussion in this thread: http://www.chiefdelphi.com/forums/sh...48&postcount=6 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|