<< disprog Other dwindow >>

Time Frequency Toolbox >> Time Frequency Toolbox > Other > divider

divider

Find dividers of an integer.

Calling Sequence

[N,M]=divider(N1)

Parameters

N1 :

an array of positive integers.

N:

an array of positive integers with same sizes as N1.

M:

an array of positive integers with same sizes as N1.

Description

find two integers N and M such that M.*N=N1 and M and N as close as possible from sqrt(N1).

Examples

[N,M]=divider(258)

       [N,M]=divider([6 8;4 198])

Authors


Report an issue
<< disprog Other dwindow >>