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?

3 ビュー (過去 30 日間)
thobeka
thobeka 2012 年 9 月 19 日
回答済み: Aash 2017 年 10 月 16 日
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?

回答 (2 件)

Laura Proctor
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?

Aash
Aash 2017 年 10 月 16 日
Can you please share how you have written function for l2 norm using loop and without loop?

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by