How to remove the apostrophe's from a cell

조회 수: 12 (최근 30일)
Daniel Tanner
Daniel Tanner 2020년 2월 28일
댓글: Daniel Tanner 2020년 2월 28일
Hi
I have a 3-by-1 cell that I have imported from excel and for some reason the three entries in the cell have apostrophe's on them:
A = ['0.00092779';'0.00097348';'0.00094242']
I would like to plot the values of these on a graph but I cannot as I get a Line Class property error due to the apostrophe's. Is there a way to remove these?
Many thanks!

채택된 답변

David Hill
David Hill 2020년 2월 28일
Try this:
A=str2double(string(A));
  댓글 수: 1
Daniel Tanner
Daniel Tanner 2020년 2월 28일
Perfect, thank you! Knew it would be something simple. Still learning all the tips and tricks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by