Solve Magic Square

버전 1.1.0.0 (3.78 KB) 작성자: Bastian Tietjen
Find all combinations of entries in a matrix which sum equals a certain number up to eps precision.
다운로드 수: 360
업데이트 날짜: 2013/4/4

라이선스 보기

Find all combinations of entries in a matrix (or vector) which sum equals a certain number. In addition to the matrix, the length of the combination (two entries, three entries, ...) as well as the numerical value to match can be supplied. Works as well on vectors.

Returns the combination and the indices of the combinations.

Since it uses brute force to try all possible combinations the time strongly depends on the size of the matrix and the length of the combination.

인용 양식

Bastian Tietjen (2024). Solve Magic Square (https://www.mathworks.com/matlabcentral/fileexchange/41063-solve-magic-square), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Smoothing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Added floating point precision, progress should not decrease due to the polynom behind it

1.0.0.0