Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
could anyone tell me how to fix the sum of (n,m) array to a fixed value .
조회 수: 1 (최근 30일)
이전 댓글 표시
could anyone tell me how to fix the sum of (n,m) array to a fixed value .
답변 (1개)
bon sai
2018년 1월 25일
if [n,m] = size(A), then you can sum by column and then sum by row, or vice visa.
sum(sum(A,1),2)
you will get the same value.
댓글 수: 4
Walter Roberson
2018년 1월 25일
"in randfixedsum, the sum(n+m) of (nxm) array should be equal to s"
I do not understand what you are trying to say there? What I think it says is something that is not correct.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!