Borrar filtros
Borrar filtros

Trying to copy a column from a array into a tall array

2 visualizaciones (últimos 30 días)
Gavin Pugh
Gavin Pugh el 22 de Dic. de 2022
Comentada: Gavin Pugh el 4 de En. de 2023
Trying to copy a column from a double array into a multi-dimensional tall array:
IrregularRawDataTallArray(:,1, targetColumn) = InputArray(1:InputArraySize(1), sourceColumn)
I've tried some differnet syntax but I get a error:
"In the assignment A(m,n,...) = B, B must be either a scalar value or a tall array. "
This is confusing as isn;t a scalar just a single value - and also I don't want the InputArray to be a Tall Array - does this mean I can't do a vector operation on a tall array?

Respuestas (1)

Bora Eryilmaz
Bora Eryilmaz el 22 de Dic. de 2022
Editada: Bora Eryilmaz el 22 de Dic. de 2022
Use tall() around the new data column:
T = tall(rand(10,2));
Starting parallel pool (parpool) using the 'Processes' profile ... Connected to the parallel pool (number of workers: 2).
t = rand(10,1);
T(:,2) = tall(t);
  1 comentario
Gavin Pugh
Gavin Pugh el 4 de En. de 2023
I tried that but now a error says "Incompatable tall array arguments. The tall arrays must be based on the same datastore." Is it because the tall array comes froma datastore that special rules apply for writing to it?

Iniciar sesión para comentar.

Categorías

Más información sobre Large Files and Big Data en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by