Effacer les filtres
Effacer les filtres

Convert double

2 vues (au cours des 30 derniers jours)
Xavier
Xavier le 14 Sep 2011
Hi,
I have a matrix like A: A=[1;1;1;1;1;1] A is 6*1 double I need to transform this double type matrix to a cell type matrix like B: B=[1;1;1;1;1;1] B is 6*1 cell
I cannot find any function to do the following transformation but it must be easy.
Thansk for you help
Xavier

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 14 Sep 2011
B = num2cell(A)
  1 commentaire
Xavier
Xavier le 14 Sep 2011
thanks it works. I do not know how I could not find this one. Thanks a lot.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 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