Filter löschen
Filter löschen

Convert Cell to Number for Plotting

5 Ansichten (letzte 30 Tage)
Amanda
Amanda am 24 Apr. 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

Akzeptierte Antwort

Jonathan Sullivan
Jonathan Sullivan am 24 Apr. 2013
help str2double
doc str2double

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by