check with all parameter except its own
이전 댓글 표시
3 5 1
5 2 2
2 5 2
5 3 1
5 1 3
7 0 2
6 1 2
6 0 3
1 1 7
1 4 4
2 1 6
5 4 0
take 3+5=8--which is not equal to 9
so loop again rotate
take 3+2=5--not equal to 9
same in this manner 5+1=6 not valid 5+5=10 no same as this start from next entry and do process,take allentry as row wise if answer valid than loop stop and do for next element process
댓글 수: 11
David Barry
2016년 12월 17일
I've read that a couple of times now and still have no idea what you are asking. Can you explain it better?
Pratik Anandpara
2016년 12월 17일
Pratik Anandpara
2016년 12월 17일
David Barry
2016년 12월 17일
No still don't get it. Please upload a mat file containing your matrices.
Pratik Anandpara
2016년 12월 17일
편집: Pratik Anandpara
2016년 12월 17일
Pratik Anandpara
2016년 12월 17일
Image Analyst
2016년 12월 17일
He might have given up because it's not well explained. So do you want to add every element to every other element, or even all possible other elements, until you find all the combinations that equal some desired integer value?
I have two more questions. (2) How large could this matrix be? and (3) have you tried a intuitive and simple brute force "for" loop?
Pratik Anandpara
2016년 12월 17일
Image Analyst
2016년 12월 17일
Let's see your brute force for loop attempt.
David Barry
2016년 12월 17일
Yes I have given up. Poor explanation, no code and no data. I'm out.
Jan
2016년 12월 17일
I do not understand the explanations also. What do you want to achieve?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!