Re: Procedures or (sub)routines
- From: "Inf" <infinitysquared@xxxxxxxxx>
- Date: 31 May 2006 04:54:56 -0700
Niels Eernink wrote:
In my program I have three if statements, more or less like so:
if (a<1) ...
if (a>1) & (a<2)...
if (a>2) ...
Niels,
I am not sure if this is what you want, but within a loop, you could
have
(a<1)*(expression1 to be evaluated)...
+ ((a>1)&(a<2))*(expression2 to be evaluated)...
+(a>2)*(expression3 to be evaluated)
Inf
.
- References:
- Procedures or (sub)routines
- From: Niels Eernink
- Procedures or (sub)routines
- Prev by Date: callback in context menu ,GUI
- Next by Date: Re: controlled size of saved image of a figure
- Previous by thread: Re: Procedures or (sub)routines
- Next by thread: Re: Procedures or (sub)routines
- Index(es):