Convert Cell to Number for Plotting

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

 채택된 답변

Jonathan Sullivan
Jonathan Sullivan 2013년 4월 24일

0 개 추천

help str2double
doc str2double

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by