Task:
Implement a function that takes a square matrix A and returns
a nonzero vector yc which minimizes
abs(norm(A*y,1)-norm(A,1)*norm(y,1))
and a nonzero vector yr which minimizes
abs(norm(A*y,inf)-norm(A,inf)*norm(y,inf))
Example
if A=eye(3), a possible solution:
yc=[1 0 0]' yr=[1 -1 1]'
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers14
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2070 Solvers
-
Back to basics 12 - Input Arguments
626 Solvers
-
390 Solvers
-
Sum the 'edge' values of a matrix
415 Solvers
-
Predicting life and death of a memory-less light bulb
378 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
You may want to add a test checking that the function actually returns vectors.