Is it possible to change scalar to numeric in workspace?

2 visualizaciones (últimos 30 días)
asaii
asaii el 21 de Dic. de 2023
Comentada: asaii el 21 de Dic. de 2023
This picture is the scalar that I would like to have converted to a Matrix of arrays (numeric if possible).
Is it possible to change scalar to numeric in workspace?

Respuesta aceptada

Chunru
Chunru el 21 de Dic. de 2023
a = gpuArray(rand(3, 4, 2));
a(:,:,1)
% use gather to convert gpu array to regular array
b = gather(a(:,:,1))

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by