Rank: 3697 based on 10 downloads (last 30 days) and 1 file submitted
photo

J.R.! Menzinger

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by J.R.!
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Jun 2007 ispair find if a natural number is pair or not... Author: J.R.! Menzinger impair, pair, is, mathematics, general 10 2
  • 1.5
1.5 | 2 ratings
Comments and Ratings on J.R.!'s Files View all
Updated File Comment by Comments Rating
06 Jun 2007 ispair find if a natural number is pair or not... Author: J.R.! Menzinger Balbi, Luca

Trivial code, and misleading function name.
Should have been "iseven", badly translated from Italian/French/...

05 Jun 2007 ispair find if a natural number is pair or not... Author: J.R.! Menzinger D'Errico, John

I had no idea what was meant by the description for this file, nor for the help. What is a "pair" number? Does this perhaps refer to prime pairs? The help refers to an "impair" number. Do you need to input a pair of numbers? Sorry, but its quite confusing. I'd call the help a bit impaired.

Once you edit the file, you find out that all this does is to test if a number is even or odd, i.e., it is testing the parity of an integer. Its pretty trivial to do, but it is functionality that is already on the file exchange.

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=2006&objectType=file

Or, if you wish, just use this one line anonymous function:

iseven = @(x) mod(x,2) == 0;

Top Tags Applied by J.R.!
figure, general, impair, is, mathematics
Files Tagged by J.R.! View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jun 2009 Close all figures except those listed Close all figures except those listed by the user. Author: Karl figure, gui 53 7
  • 5.0
5.0 | 5 ratings
05 Jun 2007 ispair find if a natural number is pair or not... Author: J.R.! Menzinger impair, pair, is, mathematics, general 10 2
  • 1.5
1.5 | 2 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com