factor2

버전 1.0.0.0 (1.37 KB) 작성자: Brett Shoelson
Returns the factors (not only the prime factors) of positive integer k, including k itself.
다운로드 수: 2.7K
업데이트 2003/9/10

라이선스 보기

%A = FACTOR2(K)
%Returns the factors (not only the prime factors) of k, including k itself.
%This complements the usage of TMW's factor function, which returns only
%prime factors.
%E.g., >> a=factor(1365), b=factor2(1365)
% ANS: a = 3 5 7 13
% b = 1 3 5 7 13 15 21 35 39 65 91 105 195 273 455 1365

%Written by Brett Shoelson, Ph.D.
%shoelson@helix.nih.gov
%9/10/01; updated 9/08/03.

%Tested under ML 6.5 and 6.1.

인용 양식

Brett Shoelson (2026). factor2 (https://kr.mathworks.com/matlabcentral/fileexchange/3944-factor2), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Discrete Math에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0

Now includes function isinteger as a subfunction.