필터 지우기
필터 지우기

Absolute value

조회 수: 10 (최근 30일)
Nu9
Nu9 2011년 9월 13일
hi, i need to get the Absolute value of this:
f=(vv(1,1)-vv(1,2,1,m))+(vv(1,1)-vv(1,2,1,m))+(vv(2,1)-vv(2,2,1,m))+(vv(3,1)-vv(3,2,1,m))+(vv(4,1)-vv(4,2,1,m))+....
i need to do a sum(from 1 to 22) of absolute values of the difference -> vv(x,y)-vv(x,y,w,z)
how can i make that?

답변 (1개)

William
William 2011년 9월 13일
Can you define "vv"? If it is composed of real numbers
fabs = abs(f)

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by