Effacer les filtres
Effacer les filtres

How to convert Cell & Double array to Numeric array?

13 vues (au cours des 30 derniers jours)
Mark Twen
Mark Twen le 17 Avr 2015
Commenté : Image Analyst le 13 Nov 2021
I have got a data of speed and directions in double and cell array. I want to sketch a graph but it says that data must be in numeric array.

Réponses (1)

Image Analyst
Image Analyst le 18 Avr 2015
Try cell2mat().
  2 commentaires
Nancy Hammond
Nancy Hammond le 13 Nov 2021
Doesnt work for me:
>> xx = cell2mat(xallc{:,1});
Brace indexing is not supported for variables of this type.
>> xx = cell2mat(xallc);
Brace indexing is not supported for variables of this type.
Image Analyst
Image Analyst le 13 Nov 2021
@Nancy Hammond please start your own question and attach your xallc in a .mat file with the paperclip icon. xallc is not a cell array or table so you don't need braces or cell2mat, you can simply use parentheses.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by