| MATLAB Central > MATLAB Newsreader > if else - odd -even in Matlab |
|
|
|
Subject: if else - odd -even in Matlab From: Marie Hadji Date: 11 Aug, 2008 22:36:02 Message: 1 of 34 |
|
Hello everybody! |
|
Subject: if else - odd -even in Matlab From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) Date: 11 Aug, 2008 23:10:27 Message: 2 of 34 |
|
In article <g7qesi$8nl$1@fred.mathworks.com>, |
|
if mod(x,2) == 0 |
|
> if mod(x,2) == 0 |
|
> The explicit comparison is not necessary since |
|
"Marie Hadji": |
|
> note: do NOT use rem/mod-stuff! it comes with |
|
bogfrog: |
|
Subject: if else - odd -even in Matlab From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) Date: 12 Aug, 2008 17:23:30 Message: 9 of 34 |
|
In article <g7qtdi$la3$1@fred.mathworks.com>, us <us@neurol.unizh.ch> wrote: |
|
Subject: if else - odd -even in Matlab From: Nicola Alex Date: 12 Aug, 2008 18:49:01 Message: 10 of 34 |
|
Hi |
|
"Nicola Alex ": |
|
Subject: if else - odd -even in Matlab From: Nicola Alex Date: 12 Aug, 2008 19:19:02 Message: 12 of 34 |
|
> now - i can better appreciate the results of your last |
|
> I've always used |
|
bogfrog: |
|
"Nicola Alex ": |
|
"us " <us@neurol.unizh.ch> wrote in message |
|
"Matt Fig": |
|
"us ": |
|
"us " <us@neurol.unizh.ch> wrote in message |
|
Well, it's a very typical job to identify the difference between the even & odd. Most of the times,I do get confused.I hope if I could get an easy method for this task. |
|
Subject: if else - odd -even in Matlab From: Donn Shull Date: 13 Aug, 2008 03:25:04 Message: 21 of 34 |
|
Angelina <datacare08@gmail.com> wrote in message |
|
Subject: if else - odd -even in Matlab From: Nicola Alex Date: 15 Aug, 2008 17:20:19 Message: 22 of 34 |
|
bogfrog <jmcgraw@rcn.com> wrote in message |
|
Subject: if else - odd -even in Matlab From: Nicola Alex Date: 15 Aug, 2008 17:30:40 Message: 23 of 34 |
|
Angelina <datacare08@gmail.com> wrote in message |
|
Subject: if else - odd -even in Matlab From: Walter Roberson Date: 15 Aug, 2008 18:54:35 Message: 24 of 34 |
|
Nicola Alex wrote: |
|
Subject: if else - odd -even in Matlab From: Walter Roberson Date: 15 Aug, 2008 19:00:01 Message: 25 of 34 |
|
Nicola Alex wrote: |
|
"Nicola Alex ": |
|
A little experiment: |
|
|
|
"james " <james.franklin.uk@googlemail.com> wrote in message <ilapb1$nic$1@fred.mathworks.com>... |
|
oops |
|
"james " <james.franklin.uk@googlemail.com> wrote in message <ilareh$ep3$1@fred.mathworks.com>... |
|
yep you're right |
|
Subject: if else - odd -even in Matlab From: Steven_Lord Date: 10 Mar, 2011 18:04:55 Message: 33 of 34 |
|
|
|
I have only quickly scrolled through the numerous answers so forgive me if this has already been suggested. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| facet | matt | 2 Nov, 2011 14:52:47 |
| odd even isinteger... | james | 10 Mar, 2011 10:09:17 |
| routing | s saya | 13 Aug, 2008 11:25:04 |
| realmax | us | 12 Aug, 2008 18:05:05 |
| floor | us | 12 Aug, 2008 15:10:20 |
| cssm | us | 12 Aug, 2008 00:00:22 |
| reference | us | 12 Aug, 2008 00:00:22 |
| bitget | us | 11 Aug, 2008 22:45:09 |
| evergreen | us | 11 Aug, 2008 22:45:08 |
| code | us | 11 Aug, 2008 22:45:08 |
