Is it possible to change scalar to numeric in workspace?

1 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by