factor2

Returns the factors (not only the prime factors) of positive integer k, including k itself.

Download
Download

You are now following this Submission

Cite As

Brett Shoelson (2026). factor2 (https://au.mathworks.com/matlabcentral/fileexchange/3944-factor2), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Now includes function isinteger as a subfunction.

Download