what is the equivalent matlab function for the operator || || ?

조회 수: 11 (최근 30일)
mari pavithra
mari pavithra 2015년 3월 14일
편집: Andrew Newell 2015년 3월 14일
I am having an expression r=||x-Ab|| which I have to convert it into a matlab code.But i have no idea what is this || || operator.can anyone tell me what does it mean and what is the equivalent matlab fuction for it.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2015년 3월 14일
mari - please provide some context for this operator. What does it mean to you? What goes between the two pairs of vertical bars?

댓글을 달려면 로그인하십시오.

채택된 답변

Andrew Newell
Andrew Newell 2015년 3월 14일
편집: Andrew Newell 2015년 3월 14일
You're probably referring to the matrix norm, which is a generalization of the idea of "distance". The equivalent MATLAB function is norm. If there is no subscript on your operator symbol, it probably represents the 2-norm, which is the default for the MATLAB function. For your example, you could write
r = norm(x-A*b);
See also Operator norm.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by