textscan to read date and time column and numeric data together
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Sohail Hasan
il 1 Lug 2022
Commentato: Sohail Hasan
il 1 Lug 2022
Thank you Stephen23. I am attaching the file. The purpose is to read the file from row 66 to end. After that I want to Connect the columns of the read numbers horizontally. May be by using 'horzcat' command. Thank you
I am new to MatLAB. I want touse textscan command to read the data. the first column is date and time and rest are numeric. can anyone help me in this?
1 Commento
Risposta accettata
Più risposte (1)
Kshittiz Bhardwaj
il 1 Lug 2022
Hello Sohail,
You have to first load open your file in MATLAB and then read each column with the appropriate conversion specifier.
You can refer : TextScan documentation
Personally, I would suggest you to use readTable instead of textScan as it is easier and straight forward
refer: readTable documentation
0 Commenti
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!