필터 지우기
필터 지우기

Formulation to Matlab code

조회 수: 1 (최근 30일)
Maroco Sc
Maroco Sc 2019년 9월 27일
댓글: rough93 2019년 9월 27일
How to write this formulation in Matlab:
form3.JPG
where p = 1; g is a vector; j= length(g); x is a vector
phi = sum( norm(max(0,g)) );
form4.JPG
phi = max( max(0,g) );
are they corect or not?
  댓글 수: 1
rough93
rough93 2019년 9월 27일
Ensure your max usage is correct
max(A,B) returns an array with the largest elements taken from A or B.
If this is correct for your application then the sum, norm is correct, you need to raise your first equation to the pth power also.

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

답변 (1개)

Alex Pedcenko
Alex Pedcenko 2019년 9월 27일
seems OK

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by