Borrar filtros
Borrar filtros

How to remove the apostrophe's from a cell

8 visualizaciones (últimos 30 días)
Daniel Tanner
Daniel Tanner el 28 de Feb. de 2020
Comentada: Daniel Tanner el 28 de Feb. de 2020
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!

Respuesta aceptada

David Hill
David Hill el 28 de Feb. de 2020
Try this:
A=str2double(string(A));
  1 comentario
Daniel Tanner
Daniel Tanner el 28 de Feb. de 2020
Perfect, thank you! Knew it would be something simple. Still learning all the tips and tricks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by