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: shivax
Subject: Re: array cell...... Find index from value
Date: Wed, 25 Jul 2018 14:15:16 -0500 (CDT)

i writed GG as example.
But i need to execute code on this array cell:

GG
 [7,2] =
  [8,2] =
  [9,2] =
  [10,2] =
  [11,2] =
  [12,2] =
  [13,2] =
  [14,2] =
  [15,2] =
  [16,2] =
  [17,2] =
  [18,2] =
  [19,2] =
  [20,2] =
  [21,2] =
  [22,2] =
  [23,2] = 123
  [24,2] =
  [25,2] =
  [26,2] =
  [27,2] =
  [28,2] =
  [29,2] =
  [30,2] =
  [31,2] =
  [32,2] =
  [33,2] =
  [34,2] =
  [35,2] =
  [36,2] =
  [37,2] =
  [38,2] =
  [39,2] =
  [40,2] =
  [41,2] =
  [42,2] =
  [43,2] =
  [44,2] =
  [45,2] =
  [46,2] =
  [47,2] =
  [48,2] =
  [49,2] =
  [50,2] =
  [51,2] =
  [52,2] =
  [53,2] =
  [54,2] = 122
  [55,2] =
  [56,2] =
  [57,2] =
  [58,2] =

here there is several null cells..


i've try this code:

>> a = cellfun (@(x) ~isempty (x) && (x ==122), string_dat_rp(:,2));
>> find(a, 1, 'first')


ans = [](0x1)



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



reply via email to

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