Tall Tables and Logical Matrices

1 Ansicht (letzte 30 Tage)
Michael Pietruschka
Michael Pietruschka am 10 Nov. 2020
Bearbeitet: Bruno Luong am 11 Nov. 2020
Hello,
im trying to do this:
[i,j] = find(zensus.FLW==floorarea.FLW'&zensus.ZLW==floorarea.ZLW');
zensus.FLA(i) = floorarea.FLA(j);
(Link to original question)
but with tall tables. I created them with the tall() function because I get the 'out of memory' error.
When I try:
[i,j] = find(zensus_tt.FLW==floorarea_tt.FLW'&zensus_tt.ZLW==floorarea_tt.ZLW');
zensus_tt.FLA(i) = floorarea_tt.FLA(j);
I get the error that tall tables cannot be transposed.
Does anyone know a workaround? Any help would be incredible!

Antworten (1)

Bruno Luong
Bruno Luong am 11 Nov. 2020
Bearbeitet: Bruno Luong am 11 Nov. 2020
Please try this
[tf,j] = ismember([zensus.FLW zensus.ZLW],[loorarea.FLW floorarea.ZLW],'rows');
i = find(tf);
j = j(tf);
zensus_tt.FLA(i) = floorarea_tt.FLA(j)

Kategorien

Mehr zu Descriptive Statistics and Visualization finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by