[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vectorial IF

From: Cezar Diaconu
Subject: vectorial IF
Date: Sat, 13 May 2000 17:49:51 +0900


I have a question here.

I'm imterested about a vectorial IF.
something like:

IF expr                   % here 'expr' is a matrix of 0 and 1
    statements1        % for any 1 do statements1
    statements2        % for any 0 do statements2

In fact I want to transfer implicit the pozition of 'expr' elements to the
statements (using (:,:) in place of (i,j) in FOR loops)

Suppossing there is a command which can do this faster then using normal IF
and FOR loops
please tell me.   Also I am interested about similar commands in Matlab and

I should say I'm quite new with Octave (normally I'm using Matlab).

Thank you,
Best regards


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]