Convert Cell to Number for Plotting

3 vues (au cours des 30 derniers jours)
Amanda
Amanda le 24 Avr 2013
I have 2 cell arrays of data that I'm trying to convert to a numerical value and plot. The cell array output is:
a = '1'
'2'
'3'
b = '1'
'2'
'3'
plot(a,b)
I have tried cell2mat but I received an error.
Thanks, Amanda

Réponse acceptée

Jonathan Sullivan
Jonathan Sullivan le 24 Avr 2013
help str2double
doc str2double
  1 commentaire
Amanda
Amanda le 24 Avr 2013
That works. Thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by