Rank: 6053 based on 11 downloads (last 30 days) and 2 files submitted
photo

Jeff Miller

E-mail
Company/University
The MathWorks

Personal Profile:

 

Watch this Author's files

 

Files Posted by Jeff Miller View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Mar 2008 Modified rfamp_qam16 demo A modified version of the shipping demo rf_amp_qam16 Author: Jeff Miller predistortion, rf 5 0
  • 4.0
4.0 | 1 rating
18 Jan 2008 List Factors List all integer factors of a number Author: Jeff Miller factors, factorization, integer, number, all, list 6 5
  • 3.66667
3.7 | 3 ratings
Comments and Ratings on Jeff Miller's Files View all
Updated File Comment by Comments Rating
11 Mar 2014 List Factors List all integer factors of a number Author: Jeff Miller Kan

If you are using R2013a or later, make sure to change Line 3 from [b,m,n]=unique(factor(x)); to [b,m,n]=unique(factor(x),'last'); The default option of unique has changed from 'last' in R2012 to 'first' in R2013.

25 Jun 2013 List Factors List all integer factors of a number Author: Jeff Miller PC

26 May 2008 Modified rfamp_qam16 demo A modified version of the shipping demo rf_amp_qam16 Author: Jeff Miller

20 Jan 2008 List Factors List all integer factors of a number Author: Jeff Miller

My hats off, John.

20 Jan 2008 List Factors List all integer factors of a number Author: Jeff Miller

A three liner then, that will be fairly efficient.

f = x ./(1:ceil(sqrt(x)));
f = f(f==fix(f)).' ;
f = unique([f;x./f]);

For example, when x = 2^25, the two liner takes
Elapsed time is 114.624158 seconds.

While my three liner takes only
Elapsed time is 0.139695 seconds.

Contact us