how do you write a programme with *if statement*for L infinity norm having written L1 and L2 norm. how do you represent L infinity norm?
1 次查看(过去 30 天)
显示 更早的评论
how do you write a programme with *if statement*for L infinity norm having written L1 and L2 norm. how do you represent L infinity norm?
0 个评论
回答(2 个)
Laura Proctor
2012-9-19
MATLAB has a norm function that you can use to find all the norm values. If you need to do it on your own, just use:
n = max(abs(x))
Why do you need to include an if statement?
0 个评论
Aash
2017-10-16
Can you please share how you have written function for l2 norm using loop and without loop?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!