Writing math formula into the matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
I try to write the below formula:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154968/image.png)
h=sum(H1(l*m)^r);
Is that true in your opinion?
Thanks for the help.
채택된 답변
Thorsten
2016년 7월 19일
It depends on the context, but your code is probably wrong. You have some variable H that seems to vary according to i, l and j. If you have set up your H such that l varies along a column, you can write
h = sum(H)
where j and l could are varying along the 2nd and 3rd dimension.
댓글 수: 2
Thorsten
2016년 7월 19일
Yes. sum sums over the first dimension, which is l in your case. And that's what the formula says.
BTW:
S = sum(X,DIM) sums along the dimension DIM.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!