convert date to datenum import from excel
Mostrar comentarios más antiguos
hello
I want to import a simple excel file to matlab and convert the column with dates from text to numeric values. The problem is that the rule convert does not show up as an alternativ. I can only replace things. Would be very glad if someone could help.

Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 17 de Jul. de 2018
0 votos
We recommend using readtable() instead. With new enough MATLAB, it can help to use detectImportOptions() with readtable()
ErikJ
el 19 de Jul. de 2018
0 votos
4 comentarios
Adam Danz
el 19 de Jul. de 2018
Are you looking for xlswrite() ?
ErikJ
el 19 de Jul. de 2018
doc xlswrite()
Read about the inputs and how to use this function. There's even an example that shows you how to insert data into specific cells of the spreadsheet. I was about to type up a quick demo but Matlab's documentation covers it. The best way to learn is by digging into the documentation. If you get stuck, come back.
It would be wise to make a copy of your data as you poke around with this function in case you accidentally overwrite your data.
ErikJ
el 19 de Jul. de 2018
Categorías
Más información sobre Data Import from MATLAB 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!
