Rank: 5679 based on 0 downloads (last 30 days) and 1 file submitted
photo

Kling & Freitag GmbH

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Kling & Freitag GmbH
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Jun 2007 ispair find if a natural number is pair or not... Author: Kling & Freitag GmbH is, pair, impair, general, mathematics 0 2
  • 1.5
1.5 | 2 ratings
Comments and Ratings on Kling & Freitag GmbH's Files View all
Updated File Comment by Comments Rating
06 Jun 2007 ispair find if a natural number is pair or not... Author: Kling & Freitag GmbH 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: Kling & Freitag GmbH 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 Kling & Freitag GmbH
figure, general, impair, is, mathematics
Files Tagged by Kling & Freitag GmbH 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 gui, figure 16 9
  • 5.0
5.0 | 7 ratings
05 Jun 2007 ispair find if a natural number is pair or not... Author: Kling & Freitag GmbH is, pair, impair, general, mathematics 0 2
  • 1.5
1.5 | 2 ratings

Contact us at files@mathworks.com