Formulation to Matlab code
조회 수: 10 (최근 30일)
이전 댓글 표시
How to write this formulation in Matlab:

where p = 1; g is a vector; j= length(g); x is a vector
phi = sum( norm(max(0,g)) );

phi = max( max(0,g) );
are they corect or not?
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Software Development Tools에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!