Re: array manipulation



Scott wrote:


tony martin wrote:


Hi everyone,
This might be a simple manipulation but I couldn?t figure it
out.
I was trying to find the indices in array (A1) where array
(A2)?s
elements equal to A1?s elements. It gives me an error when I
use
find(A1= = A2) because these two arrays have different
dimensions.
I
don?t want to do it with for loop because it takes a lot
computation
time. I would appreciate any help. Have a nice day.

A1 =

1
2
3
4
5
6
7
8

A2 =

3
5
Take a look at ismember.

Scott

Thank you very much Scott.
Thats what I was looking for.
Helps a lot.

Tony
.



Relevant Pages

  • array manipulation
    ... This might be a simple manipulation but I couldn?t figure it out. ... I was trying to find the indices in array where array?s ... findbecause these two arrays have different dimensions. ... don?t want to do it with for loop because it takes a lot computation ...
    (comp.soft-sys.matlab)
  • Re: Derivation of Heisenberg Uncertainty from Kaluza Klein Geometry
    ... three ordinary space dimensions run through the center of the loop ... intersect the other 3 space dimensions. ... course it must be every point on the loop that intersects all the ...
    (sci.physics.relativity)
  • Re: Solve this one...
    ... All events repeat again and again and nothing changes inside the loop until the loop breaks as in The Armageddon Factor. ... This machinery is basically the same machinery used in matter transporters which disassemble matter and reassemble it elsewhere in it original state or motion. ... The only difference is that the time loop machinery annihilates the present state of the matter and beams back an earlier state which re-enacts the events from the start. ... And they also do that with 11 dimensions so all the 10 dimensional scenarios are special cases of an 11 dimensional universe and this has now be shown experimentally. ...
    (rec.arts.drwho)
  • Re: Planetary Colonization : Orchestration vrs Manipulation
    ... orchestrate things to make them interesting or more enjoyable. ... And that is not manipulation, because he is careful to orchestrate and ... infinite loop, with not enough time in between cycles, to break that ... our family we are not on the conscious computer and our mind is on the ...
    (sci.physics)
  • Re: Planetary Colonization : Orchestration vrs Manipulation
    ... orchestrate things to make them interesting or more enjoyable. ... Even though you do see manipulation going on. ... infinite loop, with not enough time in between cycles, to break that ... consciousness, to communicate, regardless and so we tell them we would ...
    (sci.physics)