How to remove the apostrophe's from a cell

8 次查看(过去 30 天)
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