Effacer les filtres
Effacer les filtres

Is it possible to change scalar to numeric in workspace?

2 vues (au cours des 30 derniers jours)
asaii
asaii le 21 Déc 2023
Commenté : asaii le 21 Déc 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?

Réponse acceptée

Chunru
Chunru le 21 Déc 2023
a = gpuArray(rand(3, 4, 2));
a(:,:,1)
% use gather to convert gpu array to regular array
b = gather(a(:,:,1))
  1 commentaire
asaii
asaii le 21 Déc 2023
Thank you.You have helped me solve this problem.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by