help-octave
[Top][All Lists]
Advanced

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

Re: array cell...... Find index from value


From: mmuetzel
Subject: Re: array cell...... Find index from value
Date: Wed, 25 Jul 2018 08:49:24 -0500 (CDT)

GG{2,2}=45;
GG{340,2}=98;

a = cellfun (@(x) ~isempty (x) && (x == 98), GG(:,2));
find(a, 1, 'first')

Is this what you wanted?

Markus



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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