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에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!