Problem 44846. Just another norm problem (JANP)
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
Christian Schröder
on 24 Nov 2022
You may want to add a test checking that the function actually returns vectors.
Solution Comments
Show commentsProblem Recent Solvers11
Suggested Problems
-
97578 Solvers
-
Maximum running product for a string of numbers
2142 Solvers
-
Recurring Cycle Length (Inspired by Project Euler Problem 26)
118 Solvers
-
Flag largest magnitude swings as they occur
676 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
10697 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!