gusl: (Default)
[personal profile] gusl
Incumbent is a cell-array containing 149 vectors (each one 512-dimensional).


 >> size(incumbent)

ans =

     1   149


 >> size(incumbent{1})

ans =

   512     1



So far so good! Now, let's record that.

 >> rec{1,1} = struct('inc', incumbent); 


and access it:

 >> rec{1,1}

ans = 

1x149 struct array with fields:
    inc 


Still working as expected.

Now, let's try to access a vector again.

 >> incu = rec{1,1}.inc;
>> size(incu)

ans =

   512     1 


What??? incu{1} should refer to a 512-d vector, but 'incu' should be equal to 'incumbent'.

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags