when i load excel file number data read as string in matlab
Mostrar comentarios más antiguos
I use T = readtable('rawtrans1.xlsx') this command to load excel data . but found numeric data type declared in excel read as string in Matlab.So I can't do numeric calculation
5 comentarios
Geoff Hayes
el 15 de Mzo. de 2018
Kakoli - can you convert to a number using str2double? I see that T is a table so presumably you are accessing a certain row or column from it...
Jeremy Hughes
el 15 de Mzo. de 2018
It would help to see the file.
If the numbers are stored as TEXT in the spreadsheet, READTABLE will read those as text. Otherwise, I'd expect those to be imported as DOUBLE.
KAKOLI DEY
el 15 de Mzo. de 2018
Adriana Velasquez
el 18 de Feb. de 2021
I'm having the same problem and I have the format for that column in Excel as number. I tried cientific too..but nothing..readtable is reading the values as string. Did you figure it out two years ago @KAKOLI DEY?
Cris LaPierre
el 18 de Feb. de 2021
Editada: Cris LaPierre
el 18 de Feb. de 2021
As Jeremy said, we can be of more help if you share your file. Attach your spreadsheet to your post using the paperclip icon.
Respuestas (0)
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!