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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Laura Proctor
am 19 Sep. 2012
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 Kommentare
Aash
am 16 Okt. 2017
Can you please share how you have written function for l2 norm using loop and without loop?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Dialog Boxes finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!