File ID: 83729
isleap.m 1.0 Description
Description: A script to assess if a given year (in the Gregorian Calendar system) is a leap year or not.
It returns 0 if is not a leap year,
it returns 1 if it is a leap year.
>> A = [1200 1538 2001 ; 816 1900 1908 ; 2000 2004 2011]
1200 1538 2001
816 1900 1908
2000 2004 2011
1 0 0
1 0 1
1 1 0
It looks at the remainder of the division, if the year is divisible by 4, 100 and 400 and makes the decision according to it. (For a year ending in 00 is not a leap year unless is divisible for 400 too).
Related: divisible, division, remainder, makes, Decision, ending, isleapa
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
M-pack is a Package containing menu-implementing applets, which can build menus with different effects and features. The applets contain various parameters, which can be customized like text, image dimensions, font, size and different menu levels. Some menus in the package with different menu implementations are: CompactMenu, mimbounce, mimdesc, mimring, treemenu, textbuttongrid, iebb, jam, mselight, msetint, msetwirl, mseconvex.
M-pack (bundle of several menu applets) is multi-platform compatible. M-pack includes a series of web-based Java menu programs (mimbounce, mimdesc, mimring, treemenu, textbuttongrid, iebb, jam, mselight, msetint, msetwirl, mseconvex) that can be...
m-phorum is a simple discussion board that is based on PHP and MYSQL data base.This board contains forums to post topics for online discussions and also avails spaces for replies given by their users for the topics posted on the board.This board...
This m-file finds the periodic ACF of all the m-sequences of length 31.In this program m-sequences of length 31 are generated and its periodic Autocorrelation function is plotted.
These files just to simulate or demo M-QAM modem in case BER, channel model, signals in t and f domain.
Overal proses from bit insertion at modulator to bit estimated in demodulator. We can see the change of signal in each block diagram.
The attached Matlab file estimate numerically the probability of error for M-array orthogonal signals and plot the graph BER for M-signals [2 to 64].
Numerical estimation is performed on the probability of error equation derived in...
It is M File for computing the rational coefficiants for HeartVI1 Simulink.
This very simple m-function computes cross spectrum, coherence and phase at the same time. The input parameters are equivalent to pwelch.n or csd.m in MATLAB and use csd.m in the singal toolbox.
It's very simple but useful for engineers.
You can rum these files by my_speech.m file, taking an value like my_speech(64, 'qam') in the command window of MATLAB.
I wrote this for a friend who likes to use Excel to track the issues reported by the M-Lint code analyzer on her code. She explained that she would paste the M-Lint report into Microsfot Excel and check off each item as she fixed it.