필터 지우기
필터 지우기

Convert Cell to Number for Plotting

조회 수: 5 (최근 30일)
Amanda
Amanda 2013년 4월 24일
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일
help str2double
doc str2double

추가 답변 (0개)

카테고리

Help CenterFile 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